Exemplo n.º 1
0
 public static FormHardwareMonitor GetForm()
 {
     if (form_HardwareMonitor == null)
     {
         lock (locker)
         {
             if (form_HardwareMonitor == null)
             {
                 form_HardwareMonitor = new FormHardwareMonitor();
             }
         }
     }
     return(form_HardwareMonitor);
 }
Exemplo n.º 2
0
        public static void StartModule(Form startForm, Form cadEditForm, Form settingForm, string strMachineName)
        {
            FormMain              = new MainForm();
            FormMain.m_formStart  = startForm;
            FormMain.m_formManual = cadEditForm;
            //FormMain.m_formInfoQuery = InfoQueryForm;
            FormMain.m_formDebug       = FormHardwareMonitor.GetForm();
            FormMain.m_formUserMageage = FormSystemSetting.GetForm();
            //  FormMain.MainFrm = MainFrm.GetForm();
            FormMain.m_strMainWidowText = strMachineName;
            FormMain.m_formParameter    = settingForm;
            //  FormMain =  MainFrm.GetForm();

            Application.Run(FormMain);
        }
Exemplo n.º 3
0
        public static void StartModule(Form startForm, Form Log_In, Form form2, Form settingForm, string strMachineName, Action <int> userLevelChanged)
        {
            FormMain = new MainForm();
            FormMain.UserLevelChangedAction += userLevelChanged;
            FormMain.listForm.Add(startForm);
            FormMain.listForm.Add(Log_In);
            // FormMain.m_formStart = startForm;
            // startForm.Hide();
            FormMain.m_formStart = startForm;
            // Log_In.SetBounds(50, 100, FormMain.m_formStart.Width, FormMain.m_formStart.Height);

            FormMain.m_formManual = form2;
            //FormMain.m_formInfoQuery = InfoQueryForm;
            FormMain.m_formDebug        = FormHardwareMonitor.GetForm();
            FormMain.m_formUserMageage  = FormSystemSetting.GetForm();
            FormMain.m_strMainWidowText = strMachineName;
            FormMain.m_formParameter    = settingForm;
            //Global.m_KPIMES = new UploadDataMES.ServiceClient();
            Application.Run(FormMain);
        }
Exemplo n.º 4
0
 private void FormHardwareMonitor_FormClosed(object sender, FormClosedEventArgs e)
 {
     form_HardwareMonitor = null;
 }