/// <summary>
 /// Executes the cancel command.
 /// </summary>
 public void Cancel()
 {
     if (_cts.IsCancellationRequested)
     {
         return;
     }
     _cts.Cancel();
     _canExecuteChanged.RaiseCanExecuteChanged();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Raises <see cref="ICommand.CanExecuteChanged"/>.
 /// </summary>
 public void RaiseCanExecuteChanged()
 {
     if (_useCommandManager)
     {
         CommandManager.InvalidateRequerySuggested();
     }
     else
     {
         _canExecuteChanged.RaiseCanExecuteChanged();
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Raises <see cref="ICommand.CanExecuteChanged"/>.
 /// </summary>
 public void RaiseCanExecuteChanged()
 {
     _canExecuteChanged.RaiseCanExecuteChanged();
 }