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(); }
private void MonForm_FormClosed(object sender, FormClosedEventArgs e) { cm.Close(); timer1.Stop(); }
private void CarSignalForm_FormClosing(object sender, FormClosingEventArgs e) { cm.Close(); }