Change Action to EventHandler for more events

This commit is contained in:
tznind
2023-03-12 02:10:22 +00:00
parent 43f67a6387
commit 3bec36ac47
68 changed files with 225 additions and 225 deletions

View File

@@ -121,7 +121,7 @@ public class ExampleWindow : Window {
};
// When login button is clicked display a message popup
btnLogin.Clicked += () => {
btnLogin.Clicked += (s,e) => {
if (usernameText.Text == "admin" && passwordText.Text == "password") {
MessageBox.Query ("Logging In", "Login Successful", "Ok");
Application.RequestStop ();