⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 考试管理.cs

📁 本论文叙述了联机考试系统的现状以及C#语言的概况。重点介绍了联机考试系统的实现过程:包括系统分析、 系统调查、 数据流程分析、功能设计、 数据库设计、 系统物理配置方案、 系统实现、 系统测试和调试。
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace 自动化考试系统
{
	/// <summary>
	/// 考试管理 的摘要说明。
	/// </summary>
	public class kaoshiguanli : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.Button button4;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Button guanbi;
		private System.Windows.Forms.Button button5;
		private System.Windows.Forms.Label label6;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public kaoshiguanli()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(kaoshiguanli));
			this.label1 = new System.Windows.Forms.Label();
			this.button1 = new System.Windows.Forms.Button();
			this.button2 = new System.Windows.Forms.Button();
			this.button3 = new System.Windows.Forms.Button();
			this.button4 = new System.Windows.Forms.Button();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.guanbi = new System.Windows.Forms.Button();
			this.button5 = new System.Windows.Forms.Button();
			this.label6 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.BackColor = System.Drawing.Color.Transparent;
			this.label1.Font = new System.Drawing.Font("宋体", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label1.ForeColor = System.Drawing.Color.White;
			this.label1.Location = new System.Drawing.Point(176, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(288, 72);
			this.label1.TabIndex = 0;
			this.label1.Text = "考 试 管 理";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// button1
			// 
			this.button1.BackColor = System.Drawing.Color.Transparent;
			this.button1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button1.ForeColor = System.Drawing.Color.White;
			this.button1.Location = new System.Drawing.Point(48, 104);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(120, 32);
			this.button1.TabIndex = 1;
			this.button1.Text = "创 建 考 试";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// button2
			// 
			this.button2.BackColor = System.Drawing.Color.Transparent;
			this.button2.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button2.ForeColor = System.Drawing.Color.White;
			this.button2.Location = new System.Drawing.Point(48, 216);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(120, 32);
			this.button2.TabIndex = 1;
			this.button2.Text = "查 看 结 果";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// button3
			// 
			this.button3.BackColor = System.Drawing.Color.Transparent;
			this.button3.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button3.ForeColor = System.Drawing.Color.White;
			this.button3.Location = new System.Drawing.Point(48, 272);
			this.button3.Name = "button3";
			this.button3.Size = new System.Drawing.Size(120, 32);
			this.button3.TabIndex = 1;
			this.button3.Text = "考 试 搜 索 ";
			this.button3.Click += new System.EventHandler(this.button3_Click);
			// 
			// button4
			// 
			this.button4.BackColor = System.Drawing.Color.Transparent;
			this.button4.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button4.ForeColor = System.Drawing.Color.White;
			this.button4.Location = new System.Drawing.Point(48, 360);
			this.button4.Name = "button4";
			this.button4.Size = new System.Drawing.Size(120, 32);
			this.button4.TabIndex = 1;
			this.button4.Text = "考 试 报 告";
			this.button4.Click += new System.EventHandler(this.button4_Click);
			// 
			// label2
			// 
			this.label2.BackColor = System.Drawing.Color.Transparent;
			this.label2.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label2.ForeColor = System.Drawing.Color.White;
			this.label2.Location = new System.Drawing.Point(208, 112);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(328, 40);
			this.label2.TabIndex = 2;
			this.label2.Text = "要创建考试,单击\"创建考试\"";
			this.label2.Click += new System.EventHandler(this.label2_Click);
			// 
			// label3
			// 
			this.label3.BackColor = System.Drawing.Color.Transparent;
			this.label3.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label3.ForeColor = System.Drawing.Color.White;
			this.label3.Location = new System.Drawing.Point(208, 224);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(328, 40);
			this.label3.TabIndex = 2;
			this.label3.Text = "要查看进行的考试的结果,单击\"查看结果\"";
			// 
			// label4
			// 
			this.label4.BackColor = System.Drawing.Color.Transparent;
			this.label4.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label4.ForeColor = System.Drawing.Color.White;
			this.label4.Location = new System.Drawing.Point(208, 280);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(328, 40);
			this.label4.TabIndex = 2;
			this.label4.Text = "要搜索考试,单击\"搜索考试\"";
			// 
			// label5
			// 
			this.label5.BackColor = System.Drawing.Color.Transparent;
			this.label5.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label5.ForeColor = System.Drawing.Color.White;
			this.label5.Location = new System.Drawing.Point(208, 367);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(328, 40);
			this.label5.TabIndex = 2;
			this.label5.Text = "要显示考试报告,单击\"考试报告\"";
			// 
			// guanbi
			// 
			this.guanbi.BackColor = System.Drawing.Color.Transparent;
			this.guanbi.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.guanbi.ForeColor = System.Drawing.Color.White;
			this.guanbi.Location = new System.Drawing.Point(256, 416);
			this.guanbi.Name = "guanbi";
			this.guanbi.Size = new System.Drawing.Size(72, 40);
			this.guanbi.TabIndex = 3;
			this.guanbi.Text = "关  闭";
			this.guanbi.Click += new System.EventHandler(this.button5_Click);
			// 
			// button5
			// 
			this.button5.BackColor = System.Drawing.Color.Transparent;
			this.button5.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button5.ForeColor = System.Drawing.Color.White;
			this.button5.Location = new System.Drawing.Point(48, 154);
			this.button5.Name = "button5";
			this.button5.Size = new System.Drawing.Size(120, 32);
			this.button5.TabIndex = 4;
			this.button5.Text = "创 建 题 库";
			this.button5.Click += new System.EventHandler(this.button5_Click_1);
			// 
			// label6
			// 
			this.label6.BackColor = System.Drawing.Color.Transparent;
			this.label6.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label6.ForeColor = System.Drawing.Color.White;
			this.label6.Location = new System.Drawing.Point(208, 163);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(328, 40);
			this.label6.TabIndex = 2;
			this.label6.Text = "要创建题库,单击\"创建题库\"";
			// 
			// kaoshiguanli
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = new System.Drawing.Size(664, 477);
			this.Controls.Add(this.button5);
			this.Controls.Add(this.guanbi);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.button2);
			this.Controls.Add(this.button3);
			this.Controls.Add(this.button4);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.label5);
			this.Controls.Add(this.label6);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
			this.Name = "kaoshiguanli";
			this.Text = "考试管理";
			this.Load += new System.EventHandler(this.kaoshiguanli_Load);
			this.ResumeLayout(false);

		}
		#endregion

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

		private void button5_Click(object sender, System.EventArgs e)
		{
			this.Hide();
		}

		private void button1_Click(object sender, System.EventArgs e)
		{
			
			chuangjiankaoshi num=new chuangjiankaoshi();
			num.ShowDialog();
			num.Close();
		}

		private void button2_Click(object sender, System.EventArgs e)
		{
		
			chakanjieguo su=new chakanjieguo();
			su.ShowDialog();
			su.Close();
		}

		private void button4_Click(object sender, System.EventArgs e)
		{
			
			kaoshibaogao sn=new kaoshibaogao();
			sn.ShowDialog();
			sn.Close();
		}

		private void button3_Click(object sender, System.EventArgs e)
		{
		
			kaoshisuosao ma=new kaoshisuosao();
			ma.ShowDialog();
			ma.Close();
		}

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

		private void button5_Click_1(object sender, System.EventArgs e)
		{
			
			chuangjiantiku su=new chuangjiantiku();
			su.ShowDialog();
			su.Close();
		}

		private void button6_Click(object sender, System.EventArgs e)
		{
		
			xugaitiku  ia=new xugaitiku();
			ia.ShowDialog();
			ia.Close();
		}
	}
}

⌨️ 快捷键说明

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