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 Login_Form_FormClosed(object sender, FormClosedEventArgs e)
 {
     idcard.CloseIDcardDev();
 }
Example #3
0
 private void SetUser_Form_FormClosed(object sender, FormClosedEventArgs e)
 {
     idcardinfo.CloseIDcardDev();
 }