コード例 #1
0
 private void RaisePauseChanged()
 {
     IsPaused = CancellationTokenSource?.IsPaused ?? false;
     RaisePropertiesChanged(() => CanPause, () => CanResume);
     PauseCommand.RaiseCanExecuteChanged();
     ResumeCommand.RaiseCanExecuteChanged();
     CancelCurrentOperationCommand.RaiseCanExecuteChanged();
 }
コード例 #2
0
 private void RaiseCanExecute()
 {
     StartCommand.RaiseCanExecuteChanged();
     RestoreCommand.RaiseCanExecuteChanged();
     StopCommand.RaiseCanExecuteChanged();
     SuspendCommand.RaiseCanExecuteChanged();
     ResumeCommand.RaiseCanExecuteChanged();
 }
コード例 #3
0
 private void RaisePlayerStatusChanged()
 {
     MoveNextCommand.RaiseCanExecuteChanged();
     MovePreviousCommand.RaiseCanExecuteChanged();
     PauseCommand.RaiseCanExecuteChanged();
     ResumeCommand.RaiseCanExecuteChanged();
     SkipToPercentageCommand.RaiseCanExecuteChanged();
     RaisePropertyChanged(nameof(Playing));
 }