public AsyncDelegateCommand(Func <Task> commandAction, Func <bool> canExecuteFunc = null) { _commandAction = commandAction ?? (() => null); _canExecuteFunc = canExecuteFunc ?? (() => true); CommandManger.Register(this); }
public DelegateCommand(Action <T> onExecute, Func <T, bool> onCanExecute = null) { _onExecute = onExecute ?? (o => { }); _onCanExecute = onCanExecute ?? (o => true); CommandManger.Register(this); }