- added IsDisposed to form

- removed FormSwitched from FormBase and added to DeviceSession (more logical message loop)
- added PreviousForm to DeviceSession, contains last opened form (at initial form is null)
-BotBase message loop update
- now navigation is possible from every form, not just the latest ones as before
This commit is contained in:
FlorianDahn
2019-06-22 15:15:29 +02:00
parent 022eee4b57
commit fe1aafc9a5
3 changed files with 28 additions and 10 deletions
+10
View File
@@ -37,6 +37,16 @@ namespace TelegramBotBase.Sessions
/// </summary>
public FormBase ActiveForm { get; set; }
/// <summary>
/// Returns the previous shown form
/// </summary>
public FormBase PreviousForm { get; set; }
/// <summary>
/// contains if the form has been switched (navigated)
/// </summary>
public bool FormSwitched { get; set; } = false;
/// <summary>
/// Returns the ID of the last received message.
/// </summary>