Example #1
0
 private void ExamForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     timer1.Stop();
     //if (videoTimer != null)
     //    videoTimer.Stop();
     //if (Directory.Exists(tempBmpDir))
     //    foreach (string file in Directory.GetFiles(tempBmpDir))
     //        File.Delete(file);
     cm.Close();
     StateManager.Close();
     if (_isExam)
     {
         student.Close();
         idcardinfo.CloseIDcardDev();
         if (settings.IsNetwork)
         {
             CNetData data = new CNetData();
             data.cmdCommand = Command.Logout;
             data.intDevnum  = 0;
             data.strZjbh    = null;
             Client.SendData(data);
             Client.Close();
         }
     }
     this.camera.CloseCamera();
     //displaycomm.Close();
 }
Example #2
0
 private void MonForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     cm.Close();
     timer1.Stop();
 }
Example #3
0
 private void CarSignalForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     cm.Close();
 }