private void RaisePlayerStatusChanged() { MoveNextCommand.RaiseCanExecuteChanged(); MovePreviousCommand.RaiseCanExecuteChanged(); PauseCommand.RaiseCanExecuteChanged(); ResumeCommand.RaiseCanExecuteChanged(); SkipToPercentageCommand.RaiseCanExecuteChanged(); RaisePropertyChanged(nameof(Playing)); }
void MoveToPreviousPage() { if (this.CanMoveToPreviousPage) { PagesActu--; this.CurrentPage = this.Pages[this.CurrentPageIndex - 1]; MovePreviousCommand.RaiseCanExecuteChanged(); MoveNextCommand.RaiseCanExecuteChanged(); } }
private void MoveToNextStep() { if (CanMoveToNextStep(null)) { if (_currentStepIndex < _registeredStepList.Count() - 1) { _currentStepIndex++; OnPropertyChanged("CurrentStep"); OnPropertyChanged("CurrentStepNumber"); MoveNextCommand.RaiseCanExecuteChanged(); MovePreviousCommand.RaiseCanExecuteChanged(); } } }
private void MoveToPreviousStep() { if (CanMoveToPreviousStep(null)) { if (_currentStepIndex > 0) { _currentStepIndex--; OnPropertyChanged("CurrentStep"); OnPropertyChanged("CurrentStepNumber"); MoveNextCommand.RaiseCanExecuteChanged(); MovePreviousCommand.RaiseCanExecuteChanged(); } } }
void MoveToNextPage() { if (this.CanMoveToNextPage) { if (this.CurrentPageIndex < this.Pages.Count - 1) { this.CurrentPage = this.Pages[this.CurrentPageIndex + 1]; PagesActu++; MovePreviousCommand.RaiseCanExecuteChanged(); MoveNextCommand.RaiseCanExecuteChanged(); } else { this.OnRequestClose(); } } }
private void Attach() { this.eventAggregator.GetEvent <AudioSelectedEvent>().Subscribe(item => { CurrentItem = item; ItemsView.MoveCurrentTo(item); SwitchTimeProgressCommand.RaiseCanExecuteChanged(); MoveNextCommand.RaiseCanExecuteChanged(); MovePrevCommand.RaiseCanExecuteChanged(); }); this.commandsProxy.MoveNextCommand.RegisterCommand(this.MoveNextCommand); this.commandsProxy.MovePrevCommand.RegisterCommand(this.MovePrevCommand); this.playerService.Finished += PlayFinished; this.playerService.PositionChanged += PositionChanged; this.playerService.LoadedChanged += LoadedChanged; this.playerService.VolumeChanged += VolumeChanged; ShowVolume(this.playerService.Volume); }
void EnableMovaToNextPage(bool bo) { MoveNextCommand.RaiseCanExecuteChanged(); }
private void MoveNext() { MoveToPage(PageIndex + 1); MoveNextCommand.RaiseCanExecuteChanged(); }
private void OnStepIsValidChangedEvent(object sender, EventArgs e) { MoveNextCommand.RaiseCanExecuteChanged(); MovePreviousCommand.RaiseCanExecuteChanged(); }