form_main.cs

来自「一个很简单的考试系统。实用性很强啊!数据库在里面」· CS 代码 · 共 1,801 行 · 第 1/4 页

CS
1,801
字号
					Form_kqsb newForm_kqsb = new Form_kqsb();
					newForm_kqsb.MdiParent = this;
					newForm_kqsb.Show();
				}
			}			
		}

		private void menuItem13_Click_1(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_kjdacxtj newForm_kjdacxtj = new Form_kjdacxtj();
				newForm_kjdacxtj.MdiParent = this;
				newForm_kjdacxtj.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_kjdacxtj newForm_kjdacxtj = new Form_kjdacxtj();
					newForm_kjdacxtj.MdiParent = this;
					newForm_kjdacxtj.Show();
				}
				else
				{
					Form_kjdacxtj newForm_kjdacxtj = new Form_kjdacxtj();
					newForm_kjdacxtj.MdiParent = this;
					newForm_kjdacxtj.Show();
				}

			}			
		}

		private void menuItem47_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_zcksj newForm_zcksj = new Form_zcksj();
				newForm_zcksj.MdiParent = this;
				newForm_zcksj.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_zcksj newForm_zcksj = new Form_zcksj();
					newForm_zcksj.MdiParent = this;
					newForm_zcksj.Show();
				}
				else
				{
					Form_zcksj newForm_zcksj = new Form_zcksj();
					newForm_zcksj.MdiParent = this;
					newForm_zcksj.Show();
				}
			}			
		}

		private void menuItem48_Click(object sender, System.EventArgs e)
		{
			
		}

		private void menuItem49_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_kcrz newForm_kcrz = new Form_kcrz();
				newForm_kcrz.MdiParent = this;
				newForm_kcrz.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_kcrz newForm_kcrz = new Form_kcrz();
					newForm_kcrz.MdiParent = this;
					newForm_kcrz.Show();
				}
				else
				{
					Form_kcrz newForm_kcrz = new Form_kcrz();
					newForm_kcrz.MdiParent = this;
					newForm_kcrz.Show();
				}
			}			
		}

		private void menuItem53_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_kcxxyl newForm_kcxxyl = new Form_kcxxyl();
				newForm_kcxxyl.MdiParent = this;
				newForm_kcxxyl.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_kcxxyl newForm_kcxxyl = new Form_kcxxyl();
					newForm_kcxxyl.MdiParent = this;
					newForm_kcxxyl.Show();
				}
				else
				{
					Form_kcxxyl newForm_kcxxyl = new Form_kcxxyl();
					newForm_kcxxyl.MdiParent = this;
					newForm_kcxxyl.Show();
				}
			}						
		}

		private void menuItem37_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_jzg newForm_jzg = new Form_jzg();
				newForm_jzg.MdiParent = this;
				newForm_jzg.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_jzg newForm_jzg = new Form_jzg();
					newForm_jzg.MdiParent = this;
					newForm_jzg.Show();
				}
				else
				{
					Form_jzg newForm_jzg = new Form_jzg();
					newForm_jzg.MdiParent = this;
					newForm_jzg.Show();
				}
			}		
		}

		private void menuItem56_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_jzgcx newForm_jzgcx = new Form_jzgcx();
				newForm_jzgcx.MdiParent = this;
				newForm_jzgcx.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_jzgcx newForm_jzgcx = new Form_jzgcx();
					newForm_jzgcx.MdiParent = this;
					newForm_jzgcx.Show();
				}
				else
				{
					Form_jzgcx newForm_jzgcx = new Form_jzgcx();
					newForm_jzgcx.MdiParent = this;
					newForm_jzgcx.Show();
				}
			}		
		}

		private void menuItem36_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_xy newForm_xy = new Form_xy();
				newForm_xy.MdiParent = this;
				newForm_xy.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_xy newForm_xy = new Form_xy();
					newForm_xy.MdiParent = this;
					newForm_xy.Show();
				}
				else
				{
					Form_xy newForm_xy = new Form_xy();
					newForm_xy.MdiParent = this;
					newForm_xy.Show();
				}
			}		
		}

		private void menuItem14_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_xycx newForm_xycx = new Form_xycx();
				newForm_xycx.MdiParent = this;
				newForm_xycx.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_xycx newForm_xycx = new Form_xycx();
					newForm_xycx.MdiParent = this;
					newForm_xycx.Show();
				}
				else
				{
					Form_xycx newForm_xycx = new Form_xycx();
					newForm_xycx.MdiParent = this;
					newForm_xycx.Show();
				}
			}		
		}

		private void menuItem39_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_zyjh newForm_zyjh = new Form_zyjh();
				newForm_zyjh.MdiParent = this;
				newForm_zyjh.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_zyjh newForm_zyjh = new Form_zyjh();
					newForm_zyjh.MdiParent = this;
					newForm_zyjh.Show();
				}
				else
				{
					Form_zyjh newForm_zyjh = new Form_zyjh();
					newForm_zyjh.MdiParent = this;
					newForm_zyjh.Show();
				}
			}			
		}

		private void menuItem41_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_kbjh newForm_kbjh = new Form_kbjh();
				newForm_kbjh.MdiParent = this;
				newForm_kbjh.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_kbjh newForm_kbjh = new Form_kbjh();
					newForm_kbjh.MdiParent = this;
					newForm_kbjh.Show();
				}
				else
				{
					Form_kbjh newForm_kbjh = new Form_kbjh();
					newForm_kbjh.MdiParent = this;
					newForm_kbjh.Show();
				}
			}			
		}

		private void menuItem42_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_kkjh newForm_kkjh = new Form_kkjh();
				newForm_kkjh.MdiParent = this;
				newForm_kkjh.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_kkjh newForm_kkjh = new Form_kkjh();
					newForm_kkjh.MdiParent = this;
					newForm_kkjh.Show();
				}
				else
				{
					Form_kkjh newForm_kkjh = new Form_kkjh();
					newForm_kkjh.MdiParent = this;
					newForm_kkjh.Show();
				}
			}			
		}

		private void menuItem17_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_xyxkcx newForm_xyxkcx = new Form_xyxkcx();
				newForm_xyxkcx.MdiParent = this;
				newForm_xyxkcx.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_xyxkcx newForm_xyxkcx = new Form_xyxkcx();
					newForm_xyxkcx.MdiParent = this;
					newForm_xyxkcx.Show();
				}
				else
				{
					Form_xyxkcx newForm_xyxkcx = new Form_xyxkcx();
					newForm_xyxkcx.MdiParent = this;
					newForm_xyxkcx.Show();
				}
			}			
		}

		private void menuItem16_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_xyfbcx newForm_xyfbcx = new Form_xyfbcx();
				newForm_xyfbcx.MdiParent = this;
				newForm_xyfbcx.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_xyfbcx newForm_xyfbcx = new Form_xyfbcx();
					newForm_xyfbcx.MdiParent = this;
					newForm_xyfbcx.Show();
				}
				else
				{
					Form_xyfbcx newForm_xyfbcx = new Form_xyfbcx();
					newForm_xyfbcx.MdiParent = this;
					newForm_xyfbcx.Show();
				}
			}		
		}

		private void menuItem22_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_kqsbcx newForm_kqsbcx = new Form_kqsbcx();
				newForm_kqsbcx.MdiParent = this;
				newForm_kqsbcx.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_kqsbcx newForm_kqsbcx = new Form_kqsbcx();
					newForm_kqsbcx.MdiParent = this;
					newForm_kqsbcx.Show();
				}
				else
				{
					Form_kqsbcx newForm_kqsbcx = new Form_kqsbcx();
					newForm_kqsbcx.MdiParent = this;
					newForm_kqsbcx.Show();
				}
			}			
		}

		private void menuItem29_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_khcjcx newForm_khcjcx = new Form_khcjcx();
				newForm_khcjcx.MdiParent = this;
				newForm_khcjcx.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null) 
				{
					this.ActiveMdiChild.Close();
					Form_khcjcx newForm_khcjcx = new Form_khcjcx();
					newForm_khcjcx.MdiParent = this;
					newForm_khcjcx.Show();
				}
				
				else 
				{
					Form_khcjcx newForm_khcjcx = new Form_khcjcx();
					newForm_khcjcx.MdiParent = this;
					newForm_khcjcx.Show();
				}
			}			
		}

		private void menuItem30_Click(object sender, System.EventArgs e)
		{
			if(isfrist==true)
			{
				Form_jkcxtj newForm_jkcxtj = new Form_jkcxtj();
				newForm_jkcxtj.MdiParent = this;
				newForm_jkcxtj.Show();
				isfrist=false;
			}
			else
			{
				if (this.ActiveMdiChild != null)
				{
					this.ActiveMdiChild.Close();
					Form_jkcxtj newForm_jkcxtj = new Form_jkcxtj();
					newForm_jkcxtj.MdiParent = this;
					newForm_jkcxtj.Show();
				}
				else
				{
					Form_jkcxtj newForm_jkcxtj = new Form_jkcxtj();
					newForm_jkcxtj.MdiParent = this;
					newForm_jkcxtj.Show();
				}
			}		
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?