diff --git a/README.md b/README.md index fce9238..3597c45 100644 --- a/README.md +++ b/README.md @@ -671,9 +671,13 @@ For now we have the following: ``` -var fto = new TestForm2(); +AlertDialog ad = new AlertDialog("This is a message", "Ok"); -AlertDialog ad = new AlertDialog("This is a message", "Ok", fto); +ad.ButtonClicked += async (s, en) => +{ + var fto = new TestForm2(); + await this.NavigateTo(fto); +}; await this.NavigateTo(ad); diff --git a/TelegramBotFramework.sln b/TelegramBotFramework.sln index dbdd651..4470ccb 100644 --- a/TelegramBotFramework.sln +++ b/TelegramBotFramework.sln @@ -15,6 +15,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "images", "images", "{AF4C8238-A0F0-41AC-8C0A-33E143AEBFCD}" ProjectSection(SolutionItems) = preProject images\alertdialog.PNG = images\alertdialog.PNG + images\buttongrid.gif = images\buttongrid.gif images\calendarpicker.gif = images\calendarpicker.gif images\calendarpicker.PNG = images\calendarpicker.PNG images\example1.PNG = images\example1.PNG