Esempio n. 1
0
 public PlanExecutionEvents OnCanExecute(bool canExecute)
 {
     CanExecute?.Invoke(this, new PlanCanExecuteUpdatedEventArgs(backupPlan, canExecute));
     return(this);
 }
Esempio n. 2
0
 /// <summary>
 /// Raises the <see cref="CanExecute"/> event.
 /// </summary>
 private void RaiseCanExecute(DependencyObject element, ICommand command, Object parameters, CanExecuteRoutedEventData data) =>
 CanExecute?.Invoke(element, command, parameters, data);
Esempio n. 3
0
 public virtual bool OnCanExecute(TArgs args) => CanExecute?.Invoke(args) ?? true;