1. Mark Heath
  2. MusicRater

Commits

Mark Heath  committed f3f3f13

refactoring

  • Participants
  • Parent commits 5ffd861
  • Branches default

Comments (0)

Files changed (1)

File MusicRater/ViewModels/MainPageViewModel.cs

View file
             timer.Start();
 
             this.Tracks = new ObservableCollection<TrackViewModel>();
-            this.PlayCommand = new RelayCommand(() => Play());
-            this.PauseCommand = new RelayCommand(() => Pause());
+            this.PlayCommand = new RelayCommand(() => me.Play());
+            this.PauseCommand = new RelayCommand(() => me.Pause());
             this.NextCommand = new RelayCommand(() => Next());
             this.PrevCommand = new RelayCommand(() => Prev());
             this.AnonCommand = new AnonymiseCommand(this.Tracks);
             }
         }
 
-        private void Play()
-        {            
-            me.Play();
-        }
-
-        private void Pause()
-        {
-            me.Pause();
-        }
-
         private void Next()
         {
             SelectNext(this.Tracks);