예제 #1
0
 // 继续录制
 private void RecordResume()
 {
     isPause = false;
     Booth.fnOnRButtonDown();
     timer1.Start();
     btnRecordPause.Text = "暂停录像";
 }
예제 #2
0
 // 录制
 private void btnRecordControl_Click(object sender, EventArgs e)
 {
     if (!isRecord)
     {
         RecordStart();
         isRecord = true;
         btnRecordControl.Text    = "停止";
         btnRecordControl.Tooltip = "停止录像";
         lbRecordTime.Text        = "00:00:00";
         timer1.Start();
         btnComment.Enabled     = false;
         imglist1.Enabled       = false;
         comboTree2.Enabled     = false;
         btnJoinErrCol.Enabled  = false;
         btnOpenErr.Enabled     = false;
         btnSnapshot.Enabled    = false;
         btnOpendir.Enabled     = false;
         btnRecordPause.Enabled = true;
         NoticeShow("开始录像。");
     }
     else
     {
         img = null;
         RecordStop();
         isRecord = false;
         btnRecordControl.Text    = "录像";
         btnRecordControl.Tooltip = "开始录像";
         timer1.Stop();
         btnRecordPause.Text = "暂停录像";
         isPause             = false;
         Booth.fnOnRButtonDown();
         recordSenconds         = 0;
         btnComment.Enabled     = true;
         imglist1.Enabled       = true;
         comboTree2.Enabled     = true;
         btnJoinErrCol.Enabled  = true;
         btnOpenErr.Enabled     = true;
         btnSnapshot.Enabled    = true;
         btnOpendir.Enabled     = true;
         btnRecordPause.Enabled = false;
         NoticeShow("录像结束。");
     }
 }
예제 #3
0
 // 放大恢复
 private void EnlargeReset()
 {
     Booth.fnOnRButtonDown();
     isEnlarge = false;
     isPause   = false;
 }