- Cleanup of unecessary init calls

- added form1/form2 option to start menu in test project
- added example for different forms with and without event handlers
- added form examples to Readme.md
This commit is contained in:
FlorianDahn
2019-03-20 17:42:33 +07:00
parent 19f3c9c195
commit 211bc55aff
10 changed files with 127 additions and 21 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ namespace TelegramBotBase.Base
}
/// <summary>
/// Is this a system call ? Starts with a slash and command
/// Is this a system call ? Starts with a slash '/' and a command
/// </summary>
public bool IsSystemCall
{
-2
View File
@@ -50,7 +50,6 @@ namespace TelegramBotBase.Form
await message.DeleteMessage();
ButtonBase button = this.Buttons.FirstOrDefault(a => a.Value == call.Value);
if (button == null)
@@ -73,7 +72,6 @@ namespace TelegramBotBase.Form
{
ButtonForm btn = new ButtonForm();
var buttons = this.Buttons.Select(a => new ButtonBase(a.Text, CallbackData.Create("action", a.Value))).ToList();
btn.AddButtonRow(buttons);
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.1.2")]
[assembly: AssemblyFileVersion("1.3.1.2")]
[assembly: AssemblyVersion("1.3.1.3")]
[assembly: AssemblyFileVersion("1.3.1.3")]