//pause button private void buttonpause_Click(object sender, EventArgs e) { gotu.Pause(); txtstart.Text = "Video Paused..."; buttonpause.Visible = false; btnresume.Visible = true; }
private void MetroButton5_Click_1(object sender, EventArgs e) { scr.Pause(); timer1.Stop(); metroButton5.Visible = false; metroButton6.Visible = true; metroButton2.Visible = false; }
void Pause_Resume(bool Pause) { if (Pause) { job.Pause(); } else { job.Resume(); } }
private void buttonPauseResume_Click(object sender, EventArgs e) { if (job.Status == RecordStatus.Paused) { job.Resume(); buttonPauseResume.Text = "Pause"; } else { job.Pause(); buttonPauseResume.Text = "Resume"; } }
private void buttonPauseResumeRecord_Click(object sender, EventArgs e) { if (job.Status == RecordStatus.Paused) { job.Resume(); buttonPauseResumeRecord.Image = Image.FromFile(Application.StartupPath + "\\pause.png"); } else { job.Pause(); buttonPauseResumeRecord.Image = Image.FromFile(Application.StartupPath + "\\resume.png"); } }