public PlanExecutionEvents OnCanExecute(bool canExecute) { CanExecute?.Invoke(this, new PlanCanExecuteUpdatedEventArgs(backupPlan, canExecute)); return(this); }
/// <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);
public virtual bool OnCanExecute(TArgs args) => CanExecute?.Invoke(args) ?? true;