Exemplo n.º 1
0
        private void tsmSystemSet_Click(object sender, EventArgs e)
        {
            SystemSettingForm form = new SystemSettingForm();

            form.Owner = this;
            form.ShowDialog();
        }
Exemplo n.º 2
0
 public override void SetStyle()
 {
     if (string.IsNullOrEmpty(AppConfSetting.HospitalName))
     {
         SystemSettingForm form = new SystemSettingForm();
         form.Owner = this;
         var result = form.ShowDialog();
     }
     base.SetStyle();
 }
Exemplo n.º 3
0
        private void lb_System_Click(object sender, EventArgs e)
        {
            SystemSettingForm ssf = new SystemSettingForm();

            if (ssf.ShowDialog() == DialogResult.OK)
            {
                if (MessageBox.Show("配置已发生改变,需要重新启动系统,现在就重新启动吗?", "重启", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    Application.Restart();
                }
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// system setting button event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void sys_buttonItem_Click(object sender, EventArgs e)
        {
            SystemSettingForm systemSettingForm = new SystemSettingForm();

            systemSettingForm.Show();
        }
Exemplo n.º 5
0
 private void ToolStripMenuItem_systemSetting_Click(object sender, EventArgs e)
 {
     try
     {
         SystemSettingForm form = this.configFormManager.GetForm(this.currentUserID);
         if (form == null)
         {
             form = new SystemSettingForm(this.currentUserID, this.groupID, this.multimediaManager ,this.rapidPassiveEngine );
             this.configFormManager.Add(form);
             form.Show();
         }
         form.Focus();
     }
     catch (Exception ee)
     {
         Program.Logger.Log(ee, "MainForm.ToolStripMenuItem_systemSetting_Click", ESBasic.Loggers.ErrorLevel.High);
         MessageBox.Show(ee.Message);
     }
 }