private void Form_Config_Load(object sender, EventArgs e) { RoboSepSystemInitialized = RoboSep_System.getInstance().IsInitialized; // get language file LanguageINI = GUI_Console.RoboSep_UserConsole.getInstance().LanguageINI; Rectangle rcPrimaryScreen = Screen.PrimaryScreen.Bounds; // center the form this.Location = new Point(rcPrimaryScreen.X + (rcPrimaryScreen.Width - this.Size.Width) / 2, rcPrimaryScreen.Y + (rcPrimaryScreen.Height - this.Size.Height) / 2); loadingTimer.Start(); }
private void stopUSBWatcher() { RoboSep_System pSystem = RoboSep_System.getInstance(); if (pSystem == null) { return; } bool bInitialized = pSystem.IsInitialized; if (bInitialized && !RoboSepSystemInitialized) { pSystem.StopWatchUSB(); } }