private void player_MediaPause(object sender, EventArgs e) { isPlaying = false; if (Pause != null) Pause(this, new EventArgs()); }