public bool CanExecute(object parameter) => !IsWorking && (CanExecutePredicate?.Invoke(parameter) ?? true);
Esempio n. 2
0
 public bool CanExecute(object parameter)
 {
     return(CanExecutePredicate == null || CanExecutePredicate.Invoke(parameter));
 }
Esempio n. 3
0
 public bool CanExecute(object parameter)
 {
     return(CanExecutePredicate?.Invoke((TPredicateObj)parameter) ?? true);
 }