Simplified and removed unecessary Init Calls in Example Project

This commit is contained in:
FlorianDahn
2019-03-17 15:27:58 +07:00
parent cbd162fd3b
commit 4577fe6901
5 changed files with 29 additions and 14 deletions
+9 -1
View File
@@ -1,6 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
+1 -3
View File
@@ -14,7 +14,7 @@ namespace TelegramBaseTest
static void Main(string[] args)
{
String APIKey = " ";
String APIKey = "480896099:AAEtq_owUqRH62DR0gYc-ZWRI_TWl8El1YQ";
BotBase<Start> bb = new BotBase<Start>(APIKey);
@@ -29,7 +29,6 @@ namespace TelegramBaseTest
case "/form1":
var form1 = new TestForm();
await form1.Init();
await en.Device.ActiveForm.NavigateTo(form1);
@@ -37,7 +36,6 @@ namespace TelegramBaseTest
case "/form2":
var form2 = new TestForm2();
await form2.Init();
await en.Device.ActiveForm.NavigateTo(form2);
+6 -2
View File
@@ -67,8 +67,12 @@
<Compile Include="Tests\TestForm2.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
<None Include="App.config">
<SubType>Designer</SubType>
</None>
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TelegramBotBase\TelegramBotBase.csproj">