예제 #1
0
 public bool CanExecute(object parameter)
 {
     if (CanExecuteFunc == null)
     {
         return(true);
     }
     return(CanExecuteFunc.Invoke(parameter));
 }
예제 #2
0
 public bool CanExecute(object parameter)
 {
     return(CanExecuteFunc?.Invoke(parameter) ?? true);
 }
 public override bool CanExecute(object?parameter)
 {
     return(CanExecuteFunc?.Invoke() ?? true);
 }
예제 #4
0
 public RelayCommand(ExecuteFunc cmd, CanExecuteFunc check)
 {
     this.cmd   = cmd;
     this.check = check;
 }
예제 #5
0
 protected override bool CanExecuteCore(T parameter)
 {
     return(CanExecuteFunc?.Invoke(parameter) ?? true);
 }
예제 #6
0
 public bool CanExecute(object parameter)
 => CanExecuteFunc?.Invoke() ?? true;
예제 #7
0
 public bool CanExecute(object parameter)
 {
     return(!_isExecuting && (CanExecuteFunc?.Invoke(parameter) ?? true));
 }