Beispiel #1
0
 //pause button
 private void buttonpause_Click(object sender, EventArgs e)
 {
     gotu.Pause();
     txtstart.Text       = "Video Paused...";
     buttonpause.Visible = false;
     btnresume.Visible   = true;
 }
Beispiel #2
0
 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();
     }
 }
Beispiel #4
0
 private void buttonPauseResume_Click(object sender, EventArgs e)
 {
     if (job.Status == RecordStatus.Paused)
     {
         job.Resume();
         buttonPauseResume.Text = "Pause";
     }
     else
     {
         job.Pause();
         buttonPauseResume.Text = "Resume";
     }
 }
Beispiel #5
0
 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");
     }
 }