- change Formbase for better navigation management
This commit is contained in:
parent
7e4174a3be
commit
2989456fe5
@ -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());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user