private void buttonItem3_Click(object sender, EventArgs e) { displaycomm.Close(); ExamForm examform1 = new ExamForm(0, true); examform1.ShowDialog(); examform1.Dispose(); initDisplay(); }
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(); }