Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
 private void toolStripMenuItem1_Click(object sender, EventArgs e)
 {
     DevicesDataCenter.StopGetCaptureDataThread();
 }
Ejemplo n.º 3
0
 private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     DevicesDataCenter.StopGetCaptureDataThread();
 }