form_main.cs
来自「一个很简单的考试系统。实用性很强啊!数据库在里面」· CS 代码 · 共 1,801 行 · 第 1/4 页
CS
1,801 行
private void menuItem11_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_sjjgdy newForm_sjjgdy = new Form_sjjgdy();
newForm_sjjgdy.MdiParent = this;
newForm_sjjgdy.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_sjjgdy newForm_sjjgdy = new Form_sjjgdy();
newForm_sjjgdy.MdiParent = this;
newForm_sjjgdy.Show();
}
else
{
Form_sjjgdy newForm_sjjgdy = new Form_sjjgdy();
newForm_sjjgdy.MdiParent = this;
newForm_sjjgdy.Show();
}
}
}
private void menuItem12_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_sjjgcx newForm_sjjgcx = new Form_sjjgcx();
newForm_sjjgcx.MdiParent = this;
newForm_sjjgcx.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_sjjgcx newForm_sjjgcx = new Form_sjjgcx();
newForm_sjjgcx.MdiParent = this;
newForm_sjjgcx.Show();
}
else
{
Form_sjjgcx newForm_sjjgcx = new Form_sjjgcx();
newForm_sjjgcx.MdiParent = this;
newForm_sjjgcx.Show();
}
}
}
private void menuItem21_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_lssjyl newForm_lssjyl = new Form_lssjyl();
newForm_lssjyl.MdiParent = this;
newForm_lssjyl.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_lssjyl newForm_lssjyl = new Form_lssjyl();
newForm_lssjyl.MdiParent = this;
newForm_lssjyl.Show();
}
else
{
Form_lssjyl newForm_lssjyl = new Form_lssjyl();
newForm_lssjyl.MdiParent = this;
newForm_lssjyl.Show();
}
}
}
private void menuItem13_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_dkcj newForm_dkcj = new Form_dkcj();
newForm_dkcj.MdiParent = this;
newForm_dkcj.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_dkcj newForm_dkcj = new Form_dkcj();
newForm_dkcj.MdiParent = this;
newForm_dkcj.Show();
}
else
{
Form_dkcj newForm_dkcj = new Form_dkcj();
newForm_dkcj.MdiParent = this;
newForm_dkcj.Show();
}
}
}
private void menuItem18_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_csh newForm_csh = new Form_csh();
newForm_csh.MdiParent = this;
newForm_csh.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_csh newForm_csh = new Form_csh();
newForm_csh.MdiParent = this;
newForm_csh.Show();
}
else
{
Form_csh newForm_csh = new Form_csh();
newForm_csh.MdiParent = this;
newForm_csh.Show();
}
}
}
private void menuItem19_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_mbwh newForm_mbwh = new Form_mbwh();
newForm_mbwh.MdiParent = this;
newForm_mbwh.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_mbwh newForm_mbwh = new Form_mbwh();
newForm_mbwh.MdiParent = this;
newForm_mbwh.Show();
}
else
{
Form_mbwh newForm_mbwh = new Form_mbwh();
newForm_mbwh.MdiParent = this;
newForm_mbwh.Show();
}
}
}
private void menuItem24_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void menuItem27_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_stkcx newForm_stkcx = new Form_stkcx();
newForm_stkcx.MdiParent = this;
newForm_stkcx.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_stkcx newForm_stkcx = new Form_stkcx();
newForm_stkcx.MdiParent = this;
newForm_stkcx.Show();
}
else
{
Form_stkcx newForm_stkcx = new Form_stkcx();
newForm_stkcx.MdiParent = this;
newForm_stkcx.Show();
}
}
}
private void menuItem28_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_grzhgl newForm_grzhgl = new Form_grzhgl();
newForm_grzhgl.MdiParent = this;
newForm_grzhgl.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_grzhgl newForm_grzhgl = new Form_grzhgl();
newForm_grzhgl.MdiParent = this;
newForm_grzhgl.Show();
}
else
{
Form_grzhgl newForm_grzhgl = new Form_grzhgl();
newForm_grzhgl.MdiParent = this;
newForm_grzhgl.Show();
}
}
}
private void menuItem26_Click(object sender, System.EventArgs e)
{
gy j = new gy();
j.ShowDialog();
}
private void menuItem25_Click(object sender, System.EventArgs e)
{
try
{
System.Diagnostics.Process.Start(Application.StartupPath + "\\阜和教育课程体系考试系统使用手册.doc");
}
catch
{
MessageBox.Show("未能加载帮助文档,请与软件开发商联系",c.sysname+"课程体系试题库系统提示",MessageBoxButtons.OK,MessageBoxIcon.Error);
}
}
private void menuItem9_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_khcj newForm_khcj = new Form_khcj();
newForm_khcj.MdiParent = this;
newForm_khcj.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_khcj newForm_khcj = new Form_khcj();
newForm_khcj.MdiParent = this;
newForm_khcj.Show();
}
else
{
Form_khcj newForm_khcj = new Form_khcj();
newForm_khcj.MdiParent = this;
newForm_khcj.Show();
}
}
}
private void menuItem20_Click_1(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 menuItem31_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_sjkcxtj newForm_sjkcxtj = new Form_sjkcxtj();
newForm_sjkcxtj.MdiParent = this;
newForm_sjkcxtj.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_sjkcxtj newForm_sjkcxtj = new Form_sjkcxtj();
newForm_sjkcxtj.MdiParent = this;
newForm_sjkcxtj.Show();
}
else
{
Form_sjkcxtj newForm_sjkcxtj = new Form_sjkcxtj();
newForm_sjkcxtj.MdiParent = this;
newForm_sjkcxtj.Show();
}
}
}
private void menuItem43_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_jwjhcxtj newForm_jwjhcxtj = new Form_jwjhcxtj();
newForm_jwjhcxtj.MdiParent = this;
newForm_jwjhcxtj.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_jwjhcxtj newForm_jwjhcxtj = new Form_jwjhcxtj();
newForm_jwjhcxtj.MdiParent = this;
newForm_jwjhcxtj.Show();
}
else
{
Form_jwjhcxtj newForm_jwjhcxtj = new Form_jwjhcxtj();
newForm_jwjhcxtj.MdiParent = this;
newForm_jwjhcxtj.Show();
}
}
}
private void menuItem15_Click_1(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_xjdacxtj newForm_xjdacxtj = new Form_xjdacxtj();
newForm_xjdacxtj.MdiParent = this;
newForm_xjdacxtj.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_xjdacxtj newForm_xjdacxtj = new Form_xjdacxtj();
newForm_xjdacxtj.MdiParent = this;
newForm_xjdacxtj.Show();
}
else
{
Form_xjdacxtj newForm_xjdacxtj = new Form_xjdacxtj();
newForm_xjdacxtj.MdiParent = this;
newForm_xjdacxtj.Show();
}
}
}
private void menuItem44_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_xyfb newForm_xyfb = new Form_xyfb();
newForm_xyfb.MdiParent = this;
newForm_xyfb.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_xyfb newForm_xyfb = new Form_xyfb();
newForm_xyfb.MdiParent = this;
newForm_xyfb.Show();
}
else
{
Form_xyfb newForm_xyfb = new Form_xyfb();
newForm_xyfb.MdiParent = this;
newForm_xyfb.Show();
}
}
}
private void menuItem40_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_xyxk newForm_xyxk = new Form_xyxk();
newForm_xyxk.MdiParent = this;
newForm_xyxk.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_xyxk newForm_xyxk = new Form_xyxk();
newForm_xyxk.MdiParent = this;
newForm_xyxk.Show();
}
else
{
Form_xyxk newForm_xyxk = new Form_xyxk();
newForm_xyxk.MdiParent = this;
newForm_xyxk.Show();
}
}
}
private void menuItem51_Click(object sender, System.EventArgs e)
{
if(isfrist==true)
{
Form_kqsb newForm_kqsb = new Form_kqsb();
newForm_kqsb.MdiParent = this;
newForm_kqsb.Show();
isfrist=false;
}
else
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
Form_kqsb newForm_kqsb = new Form_kqsb();
newForm_kqsb.MdiParent = this;
newForm_kqsb.Show();
}
else
{
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?