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

                    OnPropertyChanged("CurrentStep");
                    OnPropertyChanged("CurrentStepNumber");
                    MoveNextCommand.RaiseCanExecuteChanged();
                    MovePreviousCommand.RaiseCanExecuteChanged();
                }
            }
        }
Beispiel #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();
         }
     }
 }
Beispiel #6
0
        static void Main(string[] args)
        {
            TV sonyTV = new SonyTVFactory().Create();

            TVCommand disCmd      = new DisplayCommand(sonyTV);
            TVCommand moveNextCmd = new MoveNextCommand(sonyTV);
            TVCommand movePreCmd  = new MovePreviousCommand(sonyTV);

            TV        philipsTv          = new PhilipsTVFactory().Create();
            TVCommand movePreCmd_philips = new MovePreviousCommand(philipsTv);

            RemoteController rc = new RemoteController(disCmd, moveNextCmd, movePreCmd_philips);

            rc.Display();
            rc.MoveNextChannel();
            rc.MovePreviousChannel();
        }
 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();
 }
Beispiel #9
0
 public void MoveNext()
 {
     MoveNextCommand.Execute(null);
 }
Beispiel #10
0
 private void MoveNext()
 {
     MoveToPage(PageIndex + 1);
     MoveNextCommand.RaiseCanExecuteChanged();
 }
Beispiel #11
0
 private void OnStepIsValidChangedEvent(object sender, EventArgs e)
 {
     MoveNextCommand.RaiseCanExecuteChanged();
     MovePreviousCommand.RaiseCanExecuteChanged();
 }