mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixes #4023 - Changes CommandEventArgs to be based on HandledEventArgs instead of CancelEventArgs (#4054)
* touching publish.yml * CancelEventArgs->HandledEventArgs * Fixed Handled issues
This commit is contained in:
@@ -23,15 +23,15 @@ internal partial class LoginView : IRecipient<Message<LoginActions>>
|
||||
{
|
||||
if (!ViewModel.CanLogin) { return; }
|
||||
ViewModel.LoginCommand.Execute (null);
|
||||
// Anytime Accepting is handled, make sure to set e.Cancel to false.
|
||||
e.Cancel = false;
|
||||
// When Accepting is handled, set e.Handled to true to prevent further processing.
|
||||
e.Handled = true;
|
||||
};
|
||||
|
||||
clearButton.Accepting += (_, e) =>
|
||||
{
|
||||
ViewModel.ClearCommand.Execute (null);
|
||||
// Anytime Accepting is handled, make sure to set e.Cancel to false.
|
||||
e.Cancel = false;
|
||||
// When Accepting is handled, set e.Handled to true to prevent further processing.
|
||||
e.Handled = true;
|
||||
};
|
||||
|
||||
Initialized += (_, _) => { ViewModel.Initialized (); };
|
||||
|
||||
Reference in New Issue
Block a user