private void MainForm_Load(object sender, EventArgs e) { try { DevicesDataCenter.InitializeDevicesData(); } catch (Exception ex) { MessageBox.Show(ex.StackTrace, ex.Message); this.Close(); } try { DevicesDataCenter.StartGetCaptureDataThread(); } catch (Exception ex) { MessageBox.Show(ex.StackTrace, ex.Message); this.Close(); } }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { DevicesDataCenter.StopGetCaptureDataThread(); }
private void MainForm_FormClosed(object sender, FormClosedEventArgs e) { DevicesDataCenter.StopGetCaptureDataThread(); }