Exemplo n.º 1
0
 private void PlayPause()
 {
     if (IsPlaying)
     {
         PauseRequested(this, EventArgs.Empty);
         SliderTimer.IsEnabled = false;
         IsPlaying             = false;
     }
     else
     {
         PlayRequested(this, EventArgs.Empty);
         SliderTimer.Start();
         IsPlaying = true;
     }
 }
Exemplo n.º 2
0
        public void Play()
        {
            ViewModel.Play();
            switch (ViewModel.Status)
            {
            case SongStatus.Playing:
                SliderTimer.Start();
                break;

            case SongStatus.Paused:
            // Fall through
            case SongStatus.Stopped:
                SliderTimer.Stop();
                break;
            }
        }