Accepted now takes CommandEventArgs

This commit is contained in:
Tig
2024-10-07 08:51:35 -04:00
parent bb7e4282a4
commit 018dbc625e
28 changed files with 127 additions and 137 deletions

View File

@@ -50,10 +50,10 @@ public class ViewCommandTests (ITestOutputHelper output)
return;
void ViewOnAccept (object sender, HandledEventArgs e)
void ViewOnAccept (object sender, CommandEventArgs e)
{
acceptInvoked = true;
e.Handled = true;
e.Cancel = true;
}
}
@@ -70,7 +70,7 @@ public class ViewCommandTests (ITestOutputHelper output)
return;
void ViewOnAccept (object sender, HandledEventArgs e) { accepted = true; }
void ViewOnAccept (object sender, CommandEventArgs e) { accepted = true; }
}
// Accept on subview should bubble up to parent
@@ -237,7 +237,7 @@ public class ViewCommandTests (ITestOutputHelper output)
Accepted += (s, a) =>
{
a.Handled = HandleAccepted;
a.Cancel = HandleAccepted;
AcceptedCount++;
};
@@ -260,7 +260,7 @@ public class ViewCommandTests (ITestOutputHelper output)
public bool HandleOnAccepted { get; set; }
/// <inheritdoc />
protected override bool OnAccepted (HandledEventArgs args)
protected override bool OnAccepted (CommandEventArgs args)
{
OnAcceptedCount++;