added some forms to obsolete, cause their use is bad for ram management

This commit is contained in:
FlorianDahn 2019-08-26 01:34:50 +02:00
parent 5893108bd3
commit 1a76b2b3f8
3 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,14 @@ namespace TelegramBotBase.Form
{
public String ButtonText { get; set; }
public AlertDialog(String Message, String ButtonText) : base(Message)
{
this.Buttons.Add(new ButtonBase(ButtonText, "ok"));
this.ButtonText = ButtonText;
}
[Obsolete]
public AlertDialog(String Message, String ButtonText, FormBase FormToOpen = null) : base(Message)
{
this.Buttons.Add(new ButtonBase(ButtonText, "ok"));

View File

@ -18,6 +18,7 @@ namespace TelegramBotBase.Form
public ButtonBase[][] Buttons { get; set; }
[Obsolete]
public Dictionary<String, FormBase> ButtonForms { get; set; } = new Dictionary<string, FormBase>();
private EventHandlerList __Events { get; set; } = new EventHandlerList();

View File

@ -15,6 +15,7 @@ namespace TelegramBotBase.Form
public List<ButtonBase> Buttons { get; set; }
[Obsolete]
public Dictionary<String, FormBase> ButtonForms { get; set; } = new Dictionary<string, FormBase>();
private EventHandlerList __Events { get; set; } = new EventHandlerList();