mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Change Action to EventHandler for more events
This commit is contained in:
@@ -57,7 +57,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 ();
|
||||
|
||||
Reference in New Issue
Block a user