Exemple #1
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);
        }
Exemple #2
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);
        }