In the middle of another refactoroing

This commit is contained in:
Tig
2024-10-05 12:43:09 -06:00
parent 3649a047f2
commit af110d92d0
103 changed files with 582 additions and 487 deletions

View File

@@ -258,7 +258,7 @@ public class EnabledTests () : TestsAllViews
var wasClicked = false;
var button = new Button { Text = "Click Me" };
button.IsDefault = true;
button.Accept += (s, e) => wasClicked = !wasClicked;
button.Accepted += (s, e) => wasClicked = !wasClicked;
var win = new Window { Width = Dim.Fill (), Height = Dim.Fill () };
win.Add (button);
var top = new Toplevel ();

View File

@@ -80,7 +80,7 @@ public class HasFocusTests () : TestsAllViews
{
var wasClicked = false;
var view = new Button { Text = "Click Me" };
view.Accept += (s, e) => wasClicked = !wasClicked;
view.Accepted += (s, e) => wasClicked = !wasClicked;
view.NewKeyDownEvent (Key.Space);
Assert.True (wasClicked);