private void Play()
 {
     if (!_mh.IsPlaying())
     {
         _mh.Play();
     }
     else
     {
         _mh.Pause();
     }
 }
Beispiel #2
0
 public void PlayPause()
 {
     if (model.IsPlaying)
     {
         model.IsPlaying = false;
         mh.Pause();
     }
     else
     {
         model.IsPlaying = true;
         mh.Play();
     }
 }
 public void Pause()
 {
     musicHandler.Pause();
 }
Beispiel #4
0
 private void pauseButton_Click(object sender, EventArgs e)
 {
     mh.Pause();
 }
Beispiel #5
0
 private void button2_Click(object sender, EventArgs e)
 {
     mh.Pause();
 }