📄 form_main.cs
字号:
this.menuItem22.Click += new System.EventHandler(this.menuItem22_Click);
//
// menuItem29
//
this.menuItem29.Index = 4;
this.menuItem29.Text = "考后成绩查询";
this.menuItem29.Click += new System.EventHandler(this.menuItem29_Click);
//
// menuItem13
//
this.menuItem13.Index = 5;
this.menuItem13.Text = "考籍档案查询统计";
this.menuItem13.Click += new System.EventHandler(this.menuItem13_Click_1);
//
// menuItem46
//
this.menuItem46.Index = 6;
this.menuItem46.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem47,
this.menuItem49,
this.menuItem52,
this.menuItem53,
this.menuItem30});
this.menuItem46.Text = "考试过程管理";
//
// menuItem47
//
this.menuItem47.Index = 0;
this.menuItem47.Text = "监考辅助管理";
this.menuItem47.Click += new System.EventHandler(this.menuItem47_Click);
//
// menuItem49
//
this.menuItem49.Index = 1;
this.menuItem49.Text = "考场日志管理";
this.menuItem49.Click += new System.EventHandler(this.menuItem49_Click);
//
// menuItem52
//
this.menuItem52.Index = 2;
this.menuItem52.Text = "-";
//
// menuItem53
//
this.menuItem53.Index = 3;
this.menuItem53.Text = "考场日志查询";
this.menuItem53.Click += new System.EventHandler(this.menuItem53_Click);
//
// menuItem30
//
this.menuItem30.Index = 4;
this.menuItem30.Text = "监考查询统计";
this.menuItem30.Click += new System.EventHandler(this.menuItem30_Click);
//
// menuItem33
//
this.menuItem33.Index = 7;
this.menuItem33.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem37,
this.menuItem57,
this.menuItem56});
this.menuItem33.Text = "人力资源管理";
//
// menuItem37
//
this.menuItem37.Index = 0;
this.menuItem37.Text = "教职工基本信息";
this.menuItem37.Click += new System.EventHandler(this.menuItem37_Click);
//
// menuItem57
//
this.menuItem57.Index = 1;
this.menuItem57.Text = "-";
//
// menuItem56
//
this.menuItem56.Index = 2;
this.menuItem56.Text = "员工查询统计";
this.menuItem56.Click += new System.EventHandler(this.menuItem56_Click);
//
// menuItem10
//
this.menuItem10.Index = 8;
this.menuItem10.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem18,
this.menuItem19,
this.menuItem28});
this.menuItem10.Text = "系统维护";
//
// menuItem18
//
this.menuItem18.Index = 0;
this.menuItem18.Text = "系统初始化";
this.menuItem18.Click += new System.EventHandler(this.menuItem18_Click);
//
// menuItem19
//
this.menuItem19.Index = 1;
this.menuItem19.Text = "码表维护";
this.menuItem19.Click += new System.EventHandler(this.menuItem19_Click);
//
// menuItem28
//
this.menuItem28.Index = 2;
this.menuItem28.Text = "个人帐号管理";
this.menuItem28.Click += new System.EventHandler(this.menuItem28_Click);
//
// menuItem23
//
this.menuItem23.Index = 9;
this.menuItem23.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem25,
this.menuItem26,
this.menuItem58});
this.menuItem23.Text = "联机帮助";
//
// menuItem25
//
this.menuItem25.Index = 0;
this.menuItem25.Text = "用户手册";
this.menuItem25.Click += new System.EventHandler(this.menuItem25_Click);
//
// menuItem26
//
this.menuItem26.Index = 1;
this.menuItem26.Text = "开发人员帮助";
this.menuItem26.Click += new System.EventHandler(this.menuItem26_Click);
//
// menuItem58
//
this.menuItem58.Index = 2;
this.menuItem58.Text = "关于";
//
// notifyIcon1
//
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
this.notifyIcon1.Text = "阜和教育";
this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
//
// Form_main
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(866, 517);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.IsMdiContainer = true;
this.MaximizeBox = false;
this.Menu = this.mmu;
this.Name = "Form_main";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "阜和教育课程体系试题库与考试系统";
this.Resize += new System.EventHandler(this.Form_main_Resize);
this.Closing += new System.ComponentModel.CancelEventHandler(this.Form_main_Closing);
this.Load += new System.EventHandler(this.Form_main_Load);
}
#endregion
private void Form_main_Load(object sender, System.EventArgs e)
{
// for(int i = 0;i < c.role.Length;i = i + 2)
// {
// if(c.role[i] == '1' & c.role[i+1] == '0')
// {
// this.menuItem1.Visible = false;
// }
// if(c.role[i] == '1' & c.role[i+1] == '1')
// {
// this.menuItem20.Visible = true;
// }
// if(c.role[i] == '1' & c.role[i+1] == '2')
// {
// this.menuItem2.Visible = true;
// }
// if(c.role[i] == '1' & c.role[i+1] == '3')
// {
// this.menuItem3.Visible = true;
// }
// if(c.role[i] == '1' & c.role[i+1] == '4')
// {
// this.menuItem4.Visible = true;
// }
// if(c.role[i] == '2' & c.role[i+1] == '0')
// {
// this.menuItem5.Visible = false;
// }
// if(c.role[i] == '2' & c.role[i+1] == '1')
// {
// this.menuItem6.Visible = true;
// }
// if(c.role[i] == '2' & c.role[i+1] == '2')
// {
// this.menuItem7.Visible = true;
// }
// if(c.role[i] == '2' & c.role[i+1] == '3')
// {
// this.menuItem27.Visible = true;
// }
// if(c.role[i] == '3' & c.role[i+1] == '0')
// {
// this.menuItem8.Visible = false;
// }
// if(c.role[i] == '3' & c.role[i+1] == '1')
// {
// this.menuItem11.Visible = true;
// }
// if(c.role[i] == '3' & c.role[i+1] == '2')
// {
// this.menuItem12.Visible = true;
// }
// if(c.role[i] == '3' & c.role[i+1] == '3')
// {
// this.menuItem21.Visible = true;
// }
// if(c.role[i] == '4' & c.role[i+1] == '0')
// {
// this.menuItem9.Visible = false;
// }
// if(c.role[i] == '4' & c.role[i+1] == '1')
// {
// this.menuItem13.Visible = true;
// }
// if(c.role[i] == '4' & c.role[i+1] == '2')
// {
// this.menuItem15.Visible = true;
// }
// if(c.role[i] == '5' & c.role[i+1] == '0')
// {
// this.menuItem10.Visible = false;
// }
// if(c.role[i] == '5' & c.role[i+1] == '1')
// {
// this.menuItem16.Visible = true;
// }
// if(c.role[i] == '5' & c.role[i+1] == '2')
// {
// this.menuItem14.Visible = true;
// }if(c.role[i] == '5' & c.role[i+1] == '3')
// {
// this.menuItem17.Visible = true;
// }
// if(c.role[i] == '5' & c.role[i+1] == '4')
// {
// this.menuItem22.Visible = true;
// }if(c.role[i] == '5' & c.role[i+1] == '5')
// {
// this.menuItem18.Visible = true;
// }
// if(c.role[i] == '5' & c.role[i+1] == '6')
// {
// this.menuItem19.Visible = true;
// }
// }
this.Text = c.sysname + "课程体系试题库系统";
}
private void Form_main_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
DialogResult result=MessageBox.Show("确认要离开试题库系统吗?",c.sysname+"课程体系试题库系统提示",MessageBoxButtons.YesNo,MessageBoxIcon.Question);
if(result==DialogResult.Yes)
{
e.Cancel=false;
Application.Exit();
}
else
e.Cancel=true;
}
private void Form_main_Resize(object sender, System.EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized)
{
this.Visible = false;
this.notifyIcon1.Visible = true;
}
}
private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
this.Visible = true;
this.WindowState = FormWindowState.Normal;
this.notifyIcon1.Visible = false;
}
private void menuItem3_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_jxdy newForm_jxdy = new Form_jxdy();
newForm_jxdy.MdiParent = this;
newForm_jxdy.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_jxdy newForm_jxdy = new Form_jxdy();
newForm_jxdy.MdiParent = this;
newForm_jxdy.Show();
}
else
{
Form_jxdy newForm_jxdy = new Form_jxdy();
newForm_jxdy.MdiParent = this;
newForm_jxdy.Show();
}
}
}
private void menuItem2_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_kc newForm_kc = new Form_kc();
newForm_kc.MdiParent = this;
newForm_kc.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_kc newForm_kc = new Form_kc();
newForm_kc.MdiParent = this;
newForm_kc.Show();
}
else
{
Form_kc newForm_kc = new Form_kc();
newForm_kc.MdiParent = this;
newForm_kc.Show();
}
}
}
private void menuItem20_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_sknl newForm_sknl = new Form_sknl();
newForm_sknl.MdiParent = this;
newForm_sknl.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_sknl newForm_sknl = new Form_sknl();
newForm_sknl.MdiParent = this;
newForm_sknl.Show();
}
else
{
Form_sknl newForm_sknl = new Form_sknl();
newForm_sknl.MdiParent = this;
newForm_sknl.Show();
}
}
}
private void menuItem4_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_kckcx newForm_kckcx = new Form_kckcx();
newForm_kckcx.MdiParent = this;
newForm_kckcx.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_kckcx newForm_kckcx = new Form_kckcx();
newForm_kckcx.MdiParent = this;
newForm_kckcx.Show();
}
else
{
Form_kckcx newForm_kckcx = new Form_kckcx();
newForm_kckcx.MdiParent = this;
newForm_kckcx.Show();
}
}
}
private void menuItem6_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_st newForm_st = new Form_st();
newForm_st.MdiParent = this;
newForm_st.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_st newForm_st = new Form_st();
newForm_st.MdiParent = this;
newForm_st.Show();
}
else
{
Form_st newForm_st = new Form_st();
newForm_st.MdiParent = this;
newForm_st.Show();
}
}
}
private void menuItem7_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_da newForm_da = new Form_da();
newForm_da.MdiParent = this;
newForm_da.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_da newForm_da = new Form_da();
newForm_da.MdiParent = this;
newForm_da.Show();
}
else
{
Form_da newForm_da = new Form_da();
newForm_da.MdiParent = this;
newForm_da.Show();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -