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