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

📄 frmexammgmt.cs

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

namespace OES

{
	/// <summary>
	/// Summary description for tabform.
	/// </summary>
	public class frmExamMgmt : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button btnClose;
		private System.Windows.Forms.Label lblExamReports;
		private System.Windows.Forms.Label lblSearchExam;
		private System.Windows.Forms.Label lblViewResults;
		private System.Windows.Forms.Label lblCreateExam;
		private System.Windows.Forms.Label lblinfoCreateExam;
		private System.Windows.Forms.Label lblinfoViewResults;
		private System.Windows.Forms.Label lblinfoExamReports;
		private System.Windows.Forms.Label lblinfoSearchExam;
		private System.Windows.Forms.Label label2;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;
		
		

		public frmExamMgmt()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmExamMgmt));
			this.btnClose = new System.Windows.Forms.Button();
			this.lblExamReports = new System.Windows.Forms.Label();
			this.lblSearchExam = new System.Windows.Forms.Label();
			this.lblViewResults = new System.Windows.Forms.Label();
			this.lblCreateExam = new System.Windows.Forms.Label();
			this.lblinfoCreateExam = new System.Windows.Forms.Label();
			this.lblinfoViewResults = new System.Windows.Forms.Label();
			this.lblinfoExamReports = new System.Windows.Forms.Label();
			this.lblinfoSearchExam = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// btnClose
			// 
			this.btnClose.BackColor = System.Drawing.Color.Transparent;
			this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.btnClose.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.btnClose.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.btnClose.Location = new System.Drawing.Point(343, 370);
			this.btnClose.Name = "btnClose";
			this.btnClose.Size = new System.Drawing.Size(96, 26);
			this.btnClose.TabIndex = 52;
			this.btnClose.Text = "关闭(&C)";
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// lblExamReports
			// 
			this.lblExamReports.AutoSize = true;
			this.lblExamReports.BackColor = System.Drawing.Color.Transparent;
			this.lblExamReports.Cursor = System.Windows.Forms.Cursors.Hand;
			this.lblExamReports.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblExamReports.ForeColor = System.Drawing.Color.DodgerBlue;
			this.lblExamReports.Location = new System.Drawing.Point(19, 326);
			this.lblExamReports.Name = "lblExamReports";
			this.lblExamReports.Size = new System.Drawing.Size(113, 23);
			this.lblExamReports.TabIndex = 66;
			this.lblExamReports.Text = "考  试  报  告";
			this.lblExamReports.Click += new System.EventHandler(this.lblExamReports_Click);
			this.lblExamReports.MouseEnter += new System.EventHandler(this.lblExamReports_MouseEnter);
			this.lblExamReports.MouseLeave += new System.EventHandler(this.lblExamReports_MouseLeave);
			// 
			// lblSearchExam
			// 
			this.lblSearchExam.AutoSize = true;
			this.lblSearchExam.BackColor = System.Drawing.Color.Transparent;
			this.lblSearchExam.Cursor = System.Windows.Forms.Cursors.Hand;
			this.lblSearchExam.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblSearchExam.ForeColor = System.Drawing.Color.DodgerBlue;
			this.lblSearchExam.Location = new System.Drawing.Point(19, 261);
			this.lblSearchExam.Name = "lblSearchExam";
			this.lblSearchExam.Size = new System.Drawing.Size(113, 23);
			this.lblSearchExam.TabIndex = 65;
			this.lblSearchExam.Text = "搜  索  考  试";
			this.lblSearchExam.Click += new System.EventHandler(this.lblSearchExam_Click);
			this.lblSearchExam.MouseEnter += new System.EventHandler(this.lblSearchExam_MouseEnter);
			this.lblSearchExam.MouseLeave += new System.EventHandler(this.lblSearchExam_MouseLeave);
			// 
			// lblViewResults
			// 
			this.lblViewResults.AutoSize = true;
			this.lblViewResults.BackColor = System.Drawing.Color.Transparent;
			this.lblViewResults.Cursor = System.Windows.Forms.Cursors.Hand;
			this.lblViewResults.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblViewResults.ForeColor = System.Drawing.Color.DodgerBlue;
			this.lblViewResults.Location = new System.Drawing.Point(19, 195);
			this.lblViewResults.Name = "lblViewResults";
			this.lblViewResults.Size = new System.Drawing.Size(113, 23);
			this.lblViewResults.TabIndex = 64;
			this.lblViewResults.Text = "查  看  结  果";
			this.lblViewResults.Click += new System.EventHandler(this.lblViewResults_Click);
			this.lblViewResults.MouseEnter += new System.EventHandler(this.lblViewResults_MouseEnter);
			this.lblViewResults.MouseLeave += new System.EventHandler(this.lblViewResults_MouseLeave);
			// 
			// lblCreateExam
			// 
			this.lblCreateExam.AutoSize = true;
			this.lblCreateExam.BackColor = System.Drawing.Color.Transparent;
			this.lblCreateExam.Cursor = System.Windows.Forms.Cursors.Hand;
			this.lblCreateExam.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblCreateExam.ForeColor = System.Drawing.Color.DodgerBlue;
			this.lblCreateExam.Location = new System.Drawing.Point(19, 129);
			this.lblCreateExam.Name = "lblCreateExam";
			this.lblCreateExam.Size = new System.Drawing.Size(113, 23);
			this.lblCreateExam.TabIndex = 63;
			this.lblCreateExam.Text = "创  建  考  试";
			this.lblCreateExam.Click += new System.EventHandler(this.lblCreateExam_Click);
			this.lblCreateExam.MouseEnter += new System.EventHandler(this.lblCreateExam_MouseEnter);
			this.lblCreateExam.MouseLeave += new System.EventHandler(this.lblCreateExam_MouseLeave);
			// 
			// lblinfoCreateExam
			// 
			this.lblinfoCreateExam.AutoSize = true;
			this.lblinfoCreateExam.BackColor = System.Drawing.Color.Transparent;
			this.lblinfoCreateExam.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblinfoCreateExam.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.lblinfoCreateExam.Location = new System.Drawing.Point(211, 129);
			this.lblinfoCreateExam.Name = "lblinfoCreateExam";
			this.lblinfoCreateExam.Size = new System.Drawing.Size(241, 22);
			this.lblinfoCreateExam.TabIndex = 67;
			this.lblinfoCreateExam.Text = "要创建考试,请单击“创建考试”";
			// 
			// lblinfoViewResults
			// 
			this.lblinfoViewResults.AutoSize = true;
			this.lblinfoViewResults.BackColor = System.Drawing.Color.Transparent;
			this.lblinfoViewResults.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblinfoViewResults.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.lblinfoViewResults.Location = new System.Drawing.Point(211, 195);
			this.lblinfoViewResults.Name = "lblinfoViewResults";
			this.lblinfoViewResults.Size = new System.Drawing.Size(343, 22);
			this.lblinfoViewResults.TabIndex = 68;
			this.lblinfoViewResults.Text = "要查看进行的考试的结果,请单击“查看结果”";
			// 
			// lblinfoExamReports
			// 
			this.lblinfoExamReports.AutoSize = true;
			this.lblinfoExamReports.BackColor = System.Drawing.Color.Transparent;
			this.lblinfoExamReports.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblinfoExamReports.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.lblinfoExamReports.Location = new System.Drawing.Point(211, 326);
			this.lblinfoExamReports.Name = "lblinfoExamReports";
			this.lblinfoExamReports.Size = new System.Drawing.Size(275, 22);
			this.lblinfoExamReports.TabIndex = 70;
			this.lblinfoExamReports.Text = "要显示考试报告,请单击“考试报告”";
			// 
			// lblinfoSearchExam
			// 
			this.lblinfoSearchExam.AutoSize = true;
			this.lblinfoSearchExam.BackColor = System.Drawing.Color.Transparent;
			this.lblinfoSearchExam.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblinfoSearchExam.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.lblinfoSearchExam.Location = new System.Drawing.Point(211, 261);
			this.lblinfoSearchExam.Name = "lblinfoSearchExam";
			this.lblinfoSearchExam.Size = new System.Drawing.Size(241, 22);
			this.lblinfoSearchExam.TabIndex = 71;
			this.lblinfoSearchExam.Text = "要搜索考试,请单击“搜索考试”";
			// 
			// label2
			// 
			this.label2.AutoSize = true;
			this.label2.BackColor = System.Drawing.Color.Transparent;
			this.label2.Font = new System.Drawing.Font("Century Gothic", 21.75F);
			this.label2.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.label2.Location = new System.Drawing.Point(232, 16);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(191, 39);
			this.label2.TabIndex = 72;
			this.label2.Text = "考  试  管  理";
			// 
			// frmExamMgmt
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = new System.Drawing.Size(783, 520);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.lblinfoSearchExam);
			this.Controls.Add(this.lblinfoExamReports);
			this.Controls.Add(this.lblinfoViewResults);
			this.Controls.Add(this.lblinfoCreateExam);
			this.Controls.Add(this.lblExamReports);
			this.Controls.Add(this.lblSearchExam);
			this.Controls.Add(this.lblViewResults);
			this.Controls.Add(this.lblCreateExam);
			this.Controls.Add(this.btnClose);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
			this.Location = new System.Drawing.Point(146, 115);
			this.Name = "frmExamMgmt";
			this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
			this.ResumeLayout(false);

		}
		#endregion

		private void btnExamReports_Click(object sender, System.EventArgs e)
		{
			frmExamReports report=new frmExamReports();
			report.Show();

		}

		private void lnkExamReports_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
			
		}

		

		private void lnkViewResults_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
			frmViewExamResult vexam = new frmViewExamResult();
			vexam.Show();
		}

		private void lnkSearchExam_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
			
		}

		
		private void lnkCreateExam_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
			frmExam exam=new frmExam();
			exam.Show();
		}

		private void btnClose_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}

		private void lblCreateExam_MouseEnter(object sender, System.EventArgs e)
		{
			  this.lblCreateExam.ForeColor =Color.White;
			  
		}

		private void lblCreateExam_MouseLeave(object sender, System.EventArgs e)
		{
			  this.lblCreateExam.ForeColor =Color.DodgerBlue;		
		}

		private void lblViewResults_MouseLeave(object sender, System.EventArgs e)
		{
				  this.lblViewResults.ForeColor=Color.DodgerBlue;
		}

		private void lblViewResults_MouseEnter(object sender, System.EventArgs e)
		{
				this.lblViewResults.ForeColor=Color.White;
				
		}

		private void lblSearchExam_MouseEnter(object sender, System.EventArgs e)
		{
				this.lblSearchExam.ForeColor =Color.White;
				
		}

		private void lblSearchExam_MouseLeave(object sender, System.EventArgs e)
		{
			this.lblSearchExam.ForeColor=Color.DodgerBlue;		
		}

		private void lblExamReports_MouseEnter(object sender, System.EventArgs e)
		{
			  this.lblExamReports.ForeColor =Color.White;
			  
		}

		private void lblExamReports_MouseLeave(object sender, System.EventArgs e)
		{
			this.lblExamReports.ForeColor =Color.DodgerBlue;
		}

		private void lblExamReports_Click(object sender, System.EventArgs e)
		{
			frmExamReports report=new frmExamReports();
			report.Show();
		}

		private void lblSearchExam_Click(object sender, System.EventArgs e)
		{
			frmExamSearch srcexam = new frmExamSearch();
			srcexam.Show();
		}

		private void lblViewResults_Click(object sender, System.EventArgs e)
		{
			frmViewExamResult vexam = new frmViewExamResult();
			vexam.Show();
		}

		private void lblCreateExam_Click(object sender, System.EventArgs e)
		{
			frmExam exam=new frmExam();
			exam.Show();				
		}
	}
}

⌨️ 快捷键说明

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