Browse Source

Updated Generic

Tig 10 months ago
parent
commit
1c226c7851
1 changed files with 2 additions and 2 deletions
  1. 2 2
      UICatalog/Scenarios/Generic.cs

+ 2 - 2
UICatalog/Scenarios/Generic.cs

@@ -17,8 +17,8 @@ public sealed class MyScenario : Scenario
             Title = GetQuitKeyAndName (),
         };
 
-        var button = new CheckBox() { X = Pos.Center (), Y = Pos.Center (), Text = "_Press me!" };
-        //button.Accept += (s, e) => MessageBox.ErrorQuery ("Error", "You pressed the button!", "_Ok");
+        var button = new Button { X = Pos.Center (), Y = Pos.Center (), Text = "Press me!" };
+        button.Accept += (s, e) => MessageBox.ErrorQuery ("Error", "You pressed the button!", "Ok");
         appWindow.Add (button);
 
         // Run - Start the application.