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

📄 frmexamschedule.cs

📁 本论文叙述了联机考试系统的现状以及C#语言的概况。重点介绍了联机考试系统的实现过程:包括系统分析、 系统调查、 数据流程分析、功能设计、 数据库设计、 系统物理配置方案、 系统实现、 系统测试和调试。
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;
namespace OES
{
	/// <summary>
	/// Summary description for frmExamSchedule.
	/// </summary>
	public class frmExamSchedule : System.Windows.Forms.Form
	{
		
		private System.Windows.Forms.GroupBox grpExamDetails;
		private System.Windows.Forms.Label lblMarks;
		private System.Windows.Forms.Label lblMessage;
		private System.Windows.Forms.Label lblDuration;
		private System.Windows.Forms.Label lblNoOfQuestions;
		private System.Windows.Forms.Label lblPassMarks;
		private System.Windows.Forms.Label lblHeading;
		private System.Windows.Forms.Button btnStart;
		private System.Windows.Forms.Button btnExit;
		private System.Windows.Forms.Label lblDurationValue;
		private System.Windows.Forms.Label lblPassMarksValue;
		private System.Windows.Forms.Label lblMarksValue;
		private System.Windows.Forms.Label lblNoOfQtsValue;
		private System.Windows.Forms.Label lblExamTopic;
		private System.Windows.Forms.Button btnHelp;
		private System.Windows.Forms.Label lblExamList;
		private int rowid;	    
		public static bool declinedflag=false;
		public static string examcode,durationtext;
		int duration;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		private System.Windows.Forms.DataGrid dbgExamDetails;

		
		private frmStudentWelcome objStudent;
		private string[] searchValue;
		private DataTable dtExam;

		//we are accepting a parameter of type frmStudentWelcome so that when exam begins we will be able to disable certain options like Logout
		//修改情况:部门:ACCP产品开发培训部   修改人:王文  时间:2004-12-26
		public frmExamSchedule(frmStudentWelcome st)
		{
			
			//除去searchValue=new string[4];
			searchValue=new string[5];//所添加的CODES

			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
			objStudent=st;
			//
			// 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(frmExamSchedule));
			this.lblMarks = new System.Windows.Forms.Label();
			this.lblMessage = new System.Windows.Forms.Label();
			this.lblDuration = new System.Windows.Forms.Label();
			this.lblNoOfQuestions = new System.Windows.Forms.Label();
			this.lblPassMarks = new System.Windows.Forms.Label();
			this.lblHeading = new System.Windows.Forms.Label();
			this.btnStart = new System.Windows.Forms.Button();
			this.btnExit = new System.Windows.Forms.Button();
			this.lblDurationValue = new System.Windows.Forms.Label();
			this.lblPassMarksValue = new System.Windows.Forms.Label();
			this.lblMarksValue = new System.Windows.Forms.Label();
			this.lblNoOfQtsValue = new System.Windows.Forms.Label();
			this.lblExamTopic = new System.Windows.Forms.Label();
			this.grpExamDetails = new System.Windows.Forms.GroupBox();
			this.btnHelp = new System.Windows.Forms.Button();
			this.lblExamList = new System.Windows.Forms.Label();
			this.dbgExamDetails = new System.Windows.Forms.DataGrid();
			((System.ComponentModel.ISupportInitialize)(this.dbgExamDetails)).BeginInit();
			this.SuspendLayout();
			// 
			// lblMarks
			// 
			this.lblMarks.AutoSize = true;
			this.lblMarks.BackColor = System.Drawing.Color.Transparent;
			this.lblMarks.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblMarks.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.lblMarks.Location = new System.Drawing.Point(509, 319);
			this.lblMarks.Name = "lblMarks";
			this.lblMarks.Size = new System.Drawing.Size(32, 18);
			this.lblMarks.TabIndex = 2;
			this.lblMarks.Text = "分数";
			// 
			// lblMessage
			// 
			this.lblMessage.AutoSize = true;
			this.lblMessage.BackColor = System.Drawing.Color.Transparent;
			this.lblMessage.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblMessage.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.lblMessage.Location = new System.Drawing.Point(278, 250);
			this.lblMessage.Name = "lblMessage";
			this.lblMessage.Size = new System.Drawing.Size(134, 18);
			this.lblMessage.TabIndex = 3;
			this.lblMessage.Text = "您参加的考试是关于  ";
			// 
			// lblDuration
			// 
			this.lblDuration.AutoSize = true;
			this.lblDuration.BackColor = System.Drawing.Color.Transparent;
			this.lblDuration.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblDuration.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.lblDuration.Location = new System.Drawing.Point(173, 319);
			this.lblDuration.Name = "lblDuration";
			this.lblDuration.Size = new System.Drawing.Size(59, 18);
			this.lblDuration.TabIndex = 4;
			this.lblDuration.Text = "持续时间";
			// 
			// lblNoOfQuestions
			// 
			this.lblNoOfQuestions.AutoSize = true;
			this.lblNoOfQuestions.BackColor = System.Drawing.Color.Transparent;
			this.lblNoOfQuestions.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblNoOfQuestions.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.lblNoOfQuestions.Location = new System.Drawing.Point(326, 319);
			this.lblNoOfQuestions.Name = "lblNoOfQuestions";
			this.lblNoOfQuestions.Size = new System.Drawing.Size(59, 18);
			this.lblNoOfQuestions.TabIndex = 5;
			this.lblNoOfQuestions.Text = "试题数目";
			// 
			// lblPassMarks
			// 
			this.lblPassMarks.AutoSize = true;
			this.lblPassMarks.BackColor = System.Drawing.Color.Transparent;
			this.lblPassMarks.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblPassMarks.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.lblPassMarks.Location = new System.Drawing.Point(605, 319);
			this.lblPassMarks.Name = "lblPassMarks";
			this.lblPassMarks.Size = new System.Drawing.Size(59, 18);
			this.lblPassMarks.TabIndex = 8;
			this.lblPassMarks.Text = "及格分数";
			// 
			// lblHeading
			// 
			this.lblHeading.BackColor = System.Drawing.Color.Transparent;
			this.lblHeading.Font = new System.Drawing.Font("Century Gothic", 21.75F);
			this.lblHeading.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.lblHeading.Location = new System.Drawing.Point(163, 9);
			this.lblHeading.Name = "lblHeading";
			this.lblHeading.Size = new System.Drawing.Size(424, 34);
			this.lblHeading.TabIndex = 11;
			this.lblHeading.Text = "考  试  安  排";
			// 
			// btnStart
			// 
			this.btnStart.BackColor = System.Drawing.Color.Transparent;
			this.btnStart.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.btnStart.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.btnStart.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.btnStart.Location = new System.Drawing.Point(317, 388);
			this.btnStart.Name = "btnStart";
			this.btnStart.Size = new System.Drawing.Size(96, 26);
			this.btnStart.TabIndex = 12;
			this.btnStart.Text = "开始(&S)";
			this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
			this.btnStart.Paint += new System.Windows.Forms.PaintEventHandler(this.btnStart_Paint);
			// 
			// btnExit
			// 
			this.btnExit.BackColor = System.Drawing.Color.Transparent;
			this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.btnExit.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.btnExit.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.btnExit.Location = new System.Drawing.Point(509, 388);
			this.btnExit.Name = "btnExit";
			this.btnExit.Size = new System.Drawing.Size(96, 26);
			this.btnExit.TabIndex = 13;
			this.btnExit.Text = "退出(&X)";
			this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
			// 
			// lblDurationValue
			// 
			this.lblDurationValue.AutoSize = true;
			this.lblDurationValue.BackColor = System.Drawing.Color.Transparent;
			this.lblDurationValue.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblDurationValue.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.lblDurationValue.Location = new System.Drawing.Point(250, 319);
			this.lblDurationValue.Name = "lblDurationValue";
			this.lblDurationValue.Size = new System.Drawing.Size(32, 18);
			this.lblDurationValue.TabIndex = 14;
			this.lblDurationValue.Text = "分钟";
			// 
			// lblPassMarksValue
			// 
			this.lblPassMarksValue.AutoSize = true;
			this.lblPassMarksValue.BackColor = System.Drawing.Color.Transparent;
			this.lblPassMarksValue.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblPassMarksValue.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.lblPassMarksValue.Location = new System.Drawing.Point(720, 319);
			this.lblPassMarksValue.Name = "lblPassMarksValue";
			this.lblPassMarksValue.Size = new System.Drawing.Size(0, 18);
			this.lblPassMarksValue.TabIndex = 15;
			// 
			// lblMarksValue
			// 
			this.lblMarksValue.AutoSize = true;
			this.lblMarksValue.BackColor = System.Drawing.Color.Transparent;
			this.lblMarksValue.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblMarksValue.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.lblMarksValue.Location = new System.Drawing.Point(557, 319);
			this.lblMarksValue.Name = "lblMarksValue";
			this.lblMarksValue.Size = new System.Drawing.Size(0, 18);
			this.lblMarksValue.TabIndex = 16;
			// 
			// lblNoOfQtsValue
			// 
			this.lblNoOfQtsValue.AutoSize = true;
			this.lblNoOfQtsValue.BackColor = System.Drawing.Color.Transparent;
			this.lblNoOfQtsValue.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblNoOfQtsValue.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.lblNoOfQtsValue.Location = new System.Drawing.Point(451, 319);
			this.lblNoOfQtsValue.Name = "lblNoOfQtsValue";
			this.lblNoOfQtsValue.Size = new System.Drawing.Size(0, 18);
			this.lblNoOfQtsValue.TabIndex = 17;
			// 
			// lblExamTopic
			// 
			this.lblExamTopic.AutoSize = true;
			this.lblExamTopic.BackColor = System.Drawing.Color.Transparent;
			this.lblExamTopic.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblExamTopic.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;

⌨️ 快捷键说明

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