public TextCommand( CanExecuteCallback canExecute, ExecuteCallback execute) { this.CanExecute = canExecute; this.Execute = execute; }
public bool CanExecute(object?parameter) { return(CanExecuteCallback.Invoke(parameter)); }
public SimpleCommand(Action <object> parameterizedAction, CanExecuteCallback canExecuteCallback) : this(parameterizedAction) { _canExecuteCallback = canExecuteCallback; }
public SimpleCommand(Action action, CanExecuteCallback canExecuteCallback) : this(action) { _canExecuteCallback = canExecuteCallback; }
public RelayCommand(ExecuteCallback execute, CanExecuteCallback canExecute) { this._execute = execute; this._canExecute = canExecute; }
public RelayCommand(ExecuteCallback execute, CanExecuteCallback canExecute) { this._execute = execute; this._canExecute = canExecute; }
public bool CanExecute(object parameter) => CanExecuteCallback?.Invoke(parameter) ?? true;
public bool CanExecute(object parameter) { return(CanExecuteCallback?.Invoke(parameter) ?? true); }