private void RaisePauseChanged() { IsPaused = CancellationTokenSource?.IsPaused ?? false; RaisePropertiesChanged(() => CanPause, () => CanResume); PauseCommand.RaiseCanExecuteChanged(); ResumeCommand.RaiseCanExecuteChanged(); CancelCurrentOperationCommand.RaiseCanExecuteChanged(); }
private void RaiseCanExecute() { StartCommand.RaiseCanExecuteChanged(); RestoreCommand.RaiseCanExecuteChanged(); StopCommand.RaiseCanExecuteChanged(); SuspendCommand.RaiseCanExecuteChanged(); ResumeCommand.RaiseCanExecuteChanged(); }
private void RaisePlayerStatusChanged() { MoveNextCommand.RaiseCanExecuteChanged(); MovePreviousCommand.RaiseCanExecuteChanged(); PauseCommand.RaiseCanExecuteChanged(); ResumeCommand.RaiseCanExecuteChanged(); SkipToPercentageCommand.RaiseCanExecuteChanged(); RaisePropertyChanged(nameof(Playing)); }