Ejemplo n.º 1
0
        // 全局参数配置
        private void button_globalConfig_Click(object sender, EventArgs e)
        {
            bool bStopped = false;

            if (GetGlobalRunningState() == true)
            {
                StartOrStopGlobalInstance("stop");
                bStopped = true;
            }

            try
            {
                GlobalConfigDialog dlg = new GlobalConfigDialog();
                FontUtil.AutoSetDefaultFont(dlg);

                dlg.DataDir       = this.textBox_dataDir.Text;
                dlg.StartPosition = FormStartPosition.CenterScreen;
                dlg.ShowDialog(this);
            }
            finally
            {
                if (bStopped)
                {
                    StartOrStopGlobalInstance("start");
                }
            }
        }
Ejemplo n.º 2
0
        // 全局参数配置
        private void button_globalConfig_Click(object sender, EventArgs e)
        {
            GlobalConfigDialog dlg = new GlobalConfigDialog();

            FontUtil.AutoSetDefaultFont(dlg);

            dlg.DataDir       = this.textBox_dataDir.Text;
            dlg.StartPosition = FormStartPosition.CenterScreen;
            dlg.ShowDialog(this);
        }