- Adding a progress bar control

- Adding a control base class
- Adding an option to log all incomming messages with an event handler
- Some necessary added try/catch stuff to catch exceptions for "blocked" Bots, to prevent crashing
- Added some progress bar Test to Testproject
This commit is contained in:
FlorianDahn
2018-10-14 02:26:50 +02:00
parent f431a4afc2
commit be19bbec5d
11 changed files with 627 additions and 20 deletions
+8 -3
View File
@@ -21,12 +21,14 @@ namespace TelegramBotBase.Form
/// </summary>
public bool FormSwitched { get; set; } = false;
public List<ControlBase> Controls { get; set; }
public FormBase()
{
this.Controls = new List<Base.ControlBase>();
}
public FormBase(MessageClient Client)
public FormBase(MessageClient Client): this()
{
this.Client = Client;
}
@@ -46,7 +48,10 @@ namespace TelegramBotBase.Form
public virtual async Task Closed()
{
foreach (var b in this.Controls)
{
await b.Cleanup();
}
}
public virtual async Task PreLoad(MessageResult message)