예제 #1
0
 public static FormSystemSetting GetForm()
 {
     if (form_SystemSetting == null)
     {
         lock (locker)
         {
             if (form_SystemSetting == null)
             {
                 form_SystemSetting = new FormSystemSetting();
             }
         }
     }
     return(form_SystemSetting);
 }
예제 #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);
        }
예제 #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);
        }
예제 #4
0
 private void FormSystemSetting_FormClosed(object sender, FormClosedEventArgs e)
 {
     form_SystemSetting = null;
 }