Exemplo n.º 1
0
        /// <summary>
        /// 显示基础配置页面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonItem5_Click(object sender, EventArgs e)
        {
            frmSystemSetting fss = new frmSystemSetting();

            fss.ShowDialog();
            DialogResult result = MessageBox.Show("\n修改系统设置后应重启系统   \n\n\n确认是否重启(Y/N)", "系统提示", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation);

            if (result == DialogResult.Yes)
            {
                reStart = true;
                Application.Restart();
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 单击系统设置,向splitContainer1.Panel2添加系统设置窗体
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tsmiSystemSettings_Click(object sender, EventArgs e)
 {
     //向splitContainer1.Panel2添加系统设置窗体
     if (frmFuncLib.IsOpenModules("系统设置"))
     {
         frmSystemSetting fss = new frmSystemSetting();
         AddForm(fss, "系统设置");
     }
     else
     {
         MessageBox.Show("您没有权限操作此模块,请联系管理员开通!");
     }
 }