Ejemplo n.º 1
0
        private void Process_Initialize(ProcessForm processForm)
        {
            if (GlobalSetting.LoadGlobalSetting() == true)
            {
                ReloadOptionFormInfo();
            }
            else
            {
                MainForm.ShowPopupMessage("读取配置文件失败!", "可能文件不存在或格式错误。。。");
            }

            processForm.EndProcessForm();
        }
Ejemplo n.º 2
0
        private void SettingControl_SetConfigFile()
        {
            if (GlobalSetting.IsLoadGlobalSetting == false)
            {
                MainForm.ShowPopupMessage("正在初始化数据", "请稍等片刻。。。");
                ProcessForm.StartProcessForm(Process_InitializeLoad);
            }

            if (m_ConfigForm.ShowDialog() == DialogResult.OK)
            {
                if (GlobalSetting.LoadGlobalSetting() == false)
                {
                    MainForm.ShowPopupMessage("读取配置文件失败!", "可能文件不存在或格式错误。。。");
                    return;
                }

                ProcessForm.StartProcessForm(Process_Initialize);
            }
        }
Ejemplo n.º 3
0
        private void Process_Initialize(ProcessForm processForm)
        {
            GlobalSetting.LoadGlobalRegistry();

            if (GlobalSetting.IsAutoLoadConfigSetting == true)
            {
                if (GlobalSetting.LoadGlobalSetting() == false)
                {
                    MainForm.ShowPopupMessage("读取配置文件失败!", "可能文件不存在或格式错误。。。", "请点击<主选项>的<设置配置文件>");
                }
            }

            this.m_OptionForm.Initialize();
            this.m_U50Form.Initialize();
            this.m_D50Form.Initialize();

            this.m_NotifyIcon.Visible = true;
            if (GlobalSetting.IsPopStartupInfo == true)
            {
                this.m_NotifyIcon.ShowBalloonTip(1000);
            }

            processForm.EndProcessForm();
        }