コード例 #1
0
 //系统管理
 private void show_system()
 {
     if (Tool.UersCheck.UserName=="Guest")
     {
         MessageBox.Show("权限不足!请用管理员权限登录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     if (this.checkChildFrmExist("系统管理") == true)
     {
         return;
     }
     Form f = new systemmanage();
     f.Text = "系统管理";
     f.MdiParent = this;
     f.WindowState = FormWindowState.Maximized;
     f.Show();
 }
コード例 #2
0
ファイル: main.cs プロジェクト: hkiaipc/guye
 //系统管理
 private void toolStripDropDownButton3_Click(object sender, EventArgs e)
 {
     Form f1 = new message();
     if (f1.ShowDialog() == DialogResult.OK)
     {
         if (this.checkChildFrmExist("系统管理") == true)
         {
             return;
         }
         Form f = new systemmanage();
         f.Text = "系统管理";
         f.MdiParent = this;
         f.WindowState = FormWindowState.Maximized;
         f.Show();
     }
 }