예제 #1
0
 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();
     }
 }
예제 #3
0
        private void MoveToNextStep()
        {
            if (CanMoveToNextStep(null))
            {
                if (_currentStepIndex < _registeredStepList.Count() - 1)
                {
                    _currentStepIndex++;

                    OnPropertyChanged("CurrentStep");
                    OnPropertyChanged("CurrentStepNumber");
                    MoveNextCommand.RaiseCanExecuteChanged();
                    MovePreviousCommand.RaiseCanExecuteChanged();
                }
            }
        }
예제 #4
0
        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();
         }
     }
 }
예제 #6
0
 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();
 }
예제 #8
0
 private void MoveNext()
 {
     MoveToPage(PageIndex + 1);
     MoveNextCommand.RaiseCanExecuteChanged();
 }
예제 #9
0
 private void OnStepIsValidChangedEvent(object sender, EventArgs e)
 {
     MoveNextCommand.RaiseCanExecuteChanged();
     MovePreviousCommand.RaiseCanExecuteChanged();
 }