Esempio n. 1
0
 void UpdateForm1()
 {
     detector = new DeviceDetector(false);
     detector.DeviceChanged   += new DeviceDetector.DeviceDetectorEventHandler(detector_DeviceChanged);
     BusyLoadingCircle.Visible = false;
     BusyLoadingCircle.Top     = HeaderPictureBox.Top;
     BusyLoadingCircle.Left    = HeaderPictureBox.Left;
     defaultBody = HelpBodyLabel.Text;
     //if (DesignMode) return;
     OptionsPanel.InitOptions();
     // Set status.
     StatusSaveLabel.Visible   = false;
     StatusEventsLabel.Visible = false;
     // Load Tab pages.
     ControlPages    = new TabPage[4];
     ControlPages[0] = Pad1TabPage;
     ControlPages[1] = Pad2TabPage;
     ControlPages[2] = Pad3TabPage;
     ControlPages[3] = Pad4TabPage;
     //BuletImageList.Images.Add("bullet_square_glass_blue.png", new Bitmap(Helper.GetResource("Images.bullet_square_glass_blue.png")));
     //BuletImageList.Images.Add("bullet_square_glass_green.png", new Bitmap(Helper.GetResource("Images.bullet_square_glass_green.png")));
     //BuletImageList.Images.Add("bullet_square_glass_grey.png", new Bitmap(Helper.GetResource("Images.bullet_square_glass_grey.png")));
     //BuletImageList.Images.Add("bullet_square_glass_red.png", new Bitmap(Helper.GetResource("Images.bullet_square_glass_red.png")));
     //BuletImageList.Images.Add("bullet_square_glass_yellow.png", new Bitmap(Helper.GetResource("Images.bullet_square_glass_yellow.png")));
     foreach (var item in ControlPages)
     {
         item.ImageKey = "bullet_square_glass_grey.png";
     }
     // Hide status values.
     StatusDllLabel.Text     = "";
     MainStatusStrip.Visible = false;
     // Check if INI and DLL is on disk.
     WarningsForm.CheckAndOpen();
 }
Esempio n. 2
0
 void DisposeWarnigForm()
 {
     lock (warningFormLock)
     {
         if (_WarningForm != null)
         {
             _WarningForm.Dispose();
             _WarningForm = null;
         }
     }
 }
Esempio n. 3
0
 void InitWarnigForm()
 {
     lock (warningFormLock)
     {
         _WarningForm = new WarningsForm();
         _WarningForm.CheckTimer.Start();
     }
 }