private void audio_pause_Click(object sender, EventArgs e) { if (vid != null) { audio_play.Enabled = true; audio_play.Visible = true; audio_stop.Enabled = true; audio_stop.Visible = true; audio_pause.Enabled = false; audio_pause.Visible = false; Video_Timer_Enable = false; vid.Pause(); } }
private void button5_Click(object sender, EventArgs e) { if (video.State == StateFlags.Running) { video.Pause(); } }
private void button1_Click(object sender, EventArgs e) { if (video.Playing) { button1.Text = "Играть"; video.Pause(); } else { button1.Text = "Пауза"; video.Play(); } }
public void Pause() { if (checkInit()) { if (isVideo) { _video.Pause(); } else { _audio.Pause(); } } }