From 2989456fe588d11d8a99fc924dc132a5c8a8b61f Mon Sep 17 00:00:00 2001 From: FlorianDahn Date: Wed, 4 Dec 2019 01:28:15 +0100 Subject: [PATCH] - change Formbase for better navigation management --- TelegramBotBase/Base/FormBase.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TelegramBotBase/Base/FormBase.cs b/TelegramBotBase/Base/FormBase.cs index 0a89174..9e87176 100644 --- a/TelegramBotBase/Base/FormBase.cs +++ b/TelegramBotBase/Base/FormBase.cs @@ -144,7 +144,7 @@ namespace TelegramBotBase.Form { foreach (var b in this.Controls) { - await b.Cleanup(); + b.Cleanup().Wait(); } } @@ -289,12 +289,12 @@ namespace TelegramBotBase.Form newForm.Client = this.Client; newForm.Device = ds; - await newForm.OnInit(new InitEventArgs(args)); - this.CloseControls().Wait(); await this.OnClosed(new EventArgs()); + await newForm.OnInit(new InitEventArgs(args)); + await newForm.OnOpened(new EventArgs()); }