Ejemplo n.º 1
0
 private void ConnectionStateChangedMethod(bool connected)
 {
     if (connected)
     {
         buttonConnect.Text        = "Disconnect";
         labelConnectionState.Text = "Connected";
         _Device.ShowCalibrate(0);
         _Device.ShowVersion(1);
         _Device.ClearImage(2);
     }
     else
     {
         buttonConnect.Text        = "Connect";
         labelConnectionState.Text = "Disconnected";
         _Device.PluginManager.RemovePlugin();
         ShowForm();
     }
 }
Ejemplo n.º 2
0
 private void ConnectionStateChangedMethod(bool connected)
 {
     if (connected)
     {
         buttonConnect.Text        = "Disconnect";
         labelConnectionState.Text = "Connected";
         //groupPlugins.Enabled = true;
         _Device.ShowCalibrate(0);
         _Device.ShowVersion(1);
         _Device.ClearImage(2);
     }
     else
     {
         buttonConnect.Text        = "Connect";
         labelConnectionState.Text = "Disconnected";
         //groupPlugins.Enabled = false;
         //_Device.RemovePlugin();
         //selectPlugin0.SelectedIndex = 0;
         //selectPlugin1.SelectedIndex = 0;
         //selectPlugin2.SelectedIndex = 0;
         ShowForm();
     }
 }