public bool CanExecute(object parameter) { if (CanExecuteFunc == null) { return(true); } return(CanExecuteFunc.Invoke(parameter)); }
public bool CanExecute(object parameter) { return(CanExecuteFunc?.Invoke(parameter) ?? true); }
public override bool CanExecute(object?parameter) { return(CanExecuteFunc?.Invoke() ?? true); }
public RelayCommand(ExecuteFunc cmd, CanExecuteFunc check) { this.cmd = cmd; this.check = check; }
protected override bool CanExecuteCore(T parameter) { return(CanExecuteFunc?.Invoke(parameter) ?? true); }
public bool CanExecute(object parameter) => CanExecuteFunc?.Invoke() ?? true;
public bool CanExecute(object parameter) { return(!_isExecuting && (CanExecuteFunc?.Invoke(parameter) ?? true)); }