Exemple #1
0
 public FormMain()
 {
     InitializeComponent();
     s.humidColor             = Settings.Default.HumidColor;
     s.preColor               = Settings.Default.PreColor;
     s.tempColor              = Settings.Default.TempColor;
     s.saveOnExit             = Settings.Default.SaveOnExit;
     s.showPointValuesInGraph = Settings.Default.ShowPointValues;
     s.dialColor              = ControlPaint.LightLight(Color.Honeydew);
     USB.RegisterForDeviceNotification(this.Handle, ref deviceNotificationHandle);
     USB.OpenUSB();
     if (USB.AttachedState == true)
     {
         EnableButtons();
     }
     else
     {
         DisableButtons();
     }
     ledYellow.Active = false;
     ResetW();
 }