public void RemoveCommand() { SimpleCommandManager.RemoveRaiseAcanExecuteChangedAction(RaiseCanExecuteChangedAction); }
public void Execute(object parameter) { _executeHandler(); SimpleCommandManager.RefreshCommandStates(); }
public RelayCommand(Action execute) { _executeHandler = execute ?? throw new ArgumentException("Execute must not be null!"); RaiseCanExecuteChangedAction = RaiseCanExecuteChanged; SimpleCommandManager.AddRaiseAcanExecuteChangedAction(ref RaiseCanExecuteChangedAction); }