- removing obsolete Property and methods

- updating test project
This commit is contained in:
FlorianDahn
2019-09-27 23:24:31 +02:00
parent 5c69289198
commit 058539777f
3 changed files with 22 additions and 28 deletions
+22 -8
View File
@@ -52,23 +52,37 @@ namespace TelegramBaseTest.Tests
}
else if (call.Value == "alert")
{
var fto = new TestForm2();
AlertDialog ad = new AlertDialog("This is a message", "Ok");
ad.ButtonClicked += async (s, en) =>
{
var fto = new TestForm2();
await this.NavigateTo(fto);
};
AlertDialog ad = new AlertDialog("This is a message", "Ok", fto);
await this.NavigateTo(ad);
}
else if (call.Value == "prompt")
{
PromptDialog pd = new PromptDialog("Please confirm");
pd.ButtonClicked += async (s, en) =>
{
if(en.Button.Value == "ok")
{
var tf = new TestForm2();
await pd.NavigateTo(tf);
}
else if(en.Button.Value == "cancel")
{
var tf = new TestForm2();
await pd.NavigateTo(tf);
}
};
pd.AddButton(new ButtonBase("Ok", "ok"));
pd.AddButton(new ButtonBase("Cancel", "cancel"));
var tf = new TestForm2();
pd.ButtonForms.Add("ok", tf);
pd.ButtonForms.Add("cancel", tf);
await this.NavigateTo(pd);
}