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:
@@ -6,6 +6,7 @@ using System.Runtime.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
using ReactiveUI;
|
||||
using ReactiveUI.SourceGenerators;
|
||||
using Terminal.Gui;
|
||||
|
||||
namespace ReactiveExample;
|
||||
|
||||
@@ -50,7 +51,7 @@ public partial class LoginViewModel : ReactiveObject
|
||||
|
||||
_isValidHelper = canLogin.ToProperty (this, x => x.IsValid);
|
||||
|
||||
Login = ReactiveCommand.CreateFromTask<HandledEventArgs>
|
||||
Login = ReactiveCommand.CreateFromTask<CommandEventArgs>
|
||||
(
|
||||
e => Task.Delay (TimeSpan.FromSeconds (1)),
|
||||
canLogin
|
||||
@@ -76,8 +77,8 @@ public partial class LoginViewModel : ReactiveObject
|
||||
}
|
||||
|
||||
[ReactiveCommand]
|
||||
public void Clear (HandledEventArgs args) { }
|
||||
public void Clear (CommandEventArgs args) { }
|
||||
|
||||
[IgnoreDataMember]
|
||||
public ReactiveCommand<HandledEventArgs, Unit> Login { get; }
|
||||
public ReactiveCommand<CommandEventArgs, Unit> Login { get; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user