Esempio n. 1
0
        private void SettingsButton_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //Fenster öffnen und erst weitermachen wenn wieder geschlossen
            Form_Settings myForm_Settings = new Form_Settings(this);

            myForm_Settings.ShowDialog();
        }
 private void btnSettings_Click(object sender, EventArgs e)
 {
     using (var form = new Form_Settings())
     {
         form.ShowDialog();
     }
 }
Esempio n. 3
0
 // 打开或关闭设置窗体
 private void OpenOrCloseSetting()
 {
     if (Form_Settings.Visible)
     {
         Form_Settings.Close();
     }
     else
     {
         Form_Settings.ShowDialog();
     }
 }
Esempio n. 4
0
        private void ButtonSettings_Click(object sender, EventArgs e)
        {
            Form_Settings Settings = new Form_Settings();

            SetChildFormCenter(Settings);
            Settings.ShowDialog();

            if (Settings.IsChange && Settings.IsChangeSaved && Settings.IsRestartNeeded)
            {
                MessageBox.Show(
                    International.GetText("Form_Main_Restart_Required_Msg"),
                    International.GetText("Form_Main_Restart_Required_Title"),
                    MessageBoxButtons.OK, MessageBoxIcon.Information);
                Process PHandle = new Process();
                PHandle.StartInfo.FileName = Application.ExecutablePath;
                PHandle.Start();
                Close();
            }
            else if (Settings.IsChange && Settings.IsChangeSaved)
            {
                InitLocalization();
                InitMainConfigGUIData();
            }
        }
Esempio n. 5
0
        public void ShowFormSettings()
        {
            var fs = new Form_Settings();

            fs.ShowDialog(this);
        }
Esempio n. 6
0
 private void barButtonItem_ServerSettings_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frm_Settings = new Form_Settings();
     frm_Settings.ShowDialog();
 }