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