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

@@ -636,7 +636,7 @@ namespace Terminal.Gui.ApplicationTests {
var btnLaunch = new Button ("Open Window");
btnLaunch.Clicked += () => action ();
btnLaunch.Clicked += (s,e) => action ();
Application.Top.Add (btnLaunch);
@@ -700,7 +700,7 @@ namespace Terminal.Gui.ApplicationTests {
Text = "total"
};
totalbtn.Clicked += () => {
totalbtn.Clicked += (s,e) => {
MessageBox.Query ("Count", $"Count is {total}", "Ok");
};
@@ -715,7 +715,7 @@ namespace Terminal.Gui.ApplicationTests {
Application.RequestStop ();
}
private static async void RunAsyncTest ()
private static async void RunAsyncTest (object sender, EventArgs e)
{
Assert.Equal (clickMe, btn.Text);
Assert.Equal (zero, total);