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

📄 frmteacherwelcome.cs

📁 本论文叙述了联机考试系统的现状以及C#语言的概况。重点介绍了联机考试系统的实现过程:包括系统分析、 系统调查、 数据流程分析、功能设计、 数据库设计、 系统物理配置方案、 系统实现、 系统测试和调试。
💻 CS
📖 第 1 页 / 共 2 页
字号:
			// 
			// lblText3
			// 
			this.lblText3.BackColor = System.Drawing.Color.Transparent;
			this.lblText3.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lblText3.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.lblText3.Location = new System.Drawing.Point(230, 353);
			this.lblText3.Name = "lblText3";
			this.lblText3.Size = new System.Drawing.Size(624, 43);
			this.lblText3.TabIndex = 81;
			this.lblText3.Text = "要查看和修改试题,请单击本窗口左边的“修改试题”选项";
			// 
			// hlpOES
			// 
			this.hlpOES.HelpNamespace = "D:\\ACCP China Junior Sem 4\\OES -23-Dec latest\\User Interface Layer\\bin\\Debug\\OES_" +
				"Help\\OES_HELP.chm";
			// 
			// frmTeacherWelcome
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = new System.Drawing.Size(892, 539);
			this.Controls.Add(this.lblText3);
			this.Controls.Add(this.btnModifyQuestion);
			this.Controls.Add(this.lblText5);
			this.Controls.Add(this.lblText4);
			this.Controls.Add(this.lblWelcomeTeacher);
			this.Controls.Add(this.btnHelp);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.lblText2);
			this.Controls.Add(this.label6);
			this.Controls.Add(this.lblText1);
			this.Controls.Add(this.btnLogout);
			this.Controls.Add(this.btnCreateQuestions);
			this.Controls.Add(this.btnExamMgmt);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
			this.HelpButton = true;
			this.hlpOES.SetHelpKeyword(this, "teacher");
			this.Name = "frmTeacherWelcome";
			this.hlpOES.SetShowHelp(this, true);
			this.Text = "frmTeacherWelcome";
			this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
			this.Load += new System.EventHandler(this.frmTeacherWelcome_Load);
			this.ResumeLayout(false);

		}
		#endregion

		private void btnExamMgmt_Click(object sender, System.EventArgs e)
		{
			this.btnExamMgmt.ForeColor=Color.Khaki;
			this.btnCreateQuestions.ForeColor=SystemColors.ActiveCaptionText;
			this.btnHelp.ForeColor=SystemColors.ActiveCaptionText;
			this.btnModifyQuestion.ForeColor=SystemColors.ActiveCaptionText;
			this.lblWelcomeTeacher.Left =224;
			//check if exam management is already loaded and if yes to close it
			//if(flag == 1)
			//{
			//	quest.Close();
			//}
			//if(flag == 2)
			//{
			//	quest.Close();
			//}
			//following add by dongping 2004-12-25
			if(flag == 2)
			{
				if(quest !=null)
				{
					quest.Close();
				}
			}
			if(flag == 3)
			{
				if (objQuestSearch !=null)
				{
					objQuestSearch.Close();
				}
			}
			flag=1;

			exammgt=new frmExamMgmt();
			exammgt.ShowDialog();//modify by dongping 2004-12-26
		}

		private void btnLogout_Click(object sender, System.EventArgs e)
		{
			this.Close();//close the current form - AdminWelcome
			if(flag == 1)
			{
				if(exammgt !=null)
				{
					exammgt.Close();//close frmExamMgmt if open
				}
			}
			else if(flag == 2)
			{
				if(quest !=null)
				{
					quest.Close();//close frmQuestion if open (modify)
				}
			}
			else if(flag ==3)
			{
				if (objQuestSearch !=null)
				{
					objQuestSearch.Close();
				}
			}
//			else if(flag ==4)
//			{
//				if (objSchedulePaper !=null)
//				{
//					objSchedulePaper.Close();
//				}
//			}
			objLogin.txtUsername.Text="";
			objLogin.txtPassword.Text="";
			objLogin.txtUsername.Select();

			objLogin.Show();//show the existing instance of the login form
			objLogin.txtUsername.Focus();
			objLogin.lblLogin.Text="";
			frmLogin.ctr=1;
		}

		private void btnCreateQuestions_Click(object sender, System.EventArgs e)
           {
			this.btnExamMgmt.ForeColor=SystemColors.ActiveCaptionText;
			this.btnHelp.ForeColor=SystemColors.ActiveCaptionText;
			this.btnModifyQuestion.ForeColor=SystemColors.ActiveCaptionText;
			this.btnCreateQuestions.ForeColor=Color.Khaki;
			this.lblWelcomeTeacher.Left =224;
			if(flag == 1)
			{
				if(exammgt!=null)
				{
					exammgt.Close();
				}
			}
			else if(flag ==3)
			{
				if (objQuestSearch !=null)
				{
					objQuestSearch.Close();
				}
			}
			flag = 2;
			quest = new frmQuestion(flag);
			quest.ShowDialog();//modify by dongping 2004-12-26
		}

		private void btnModifyQuestion_Click(object sender, System.EventArgs e)
		{
			this.btnExamMgmt.ForeColor=SystemColors.ActiveCaptionText;
			this.btnCreateQuestions.ForeColor=SystemColors.ActiveCaptionText;
			this.btnHelp.ForeColor=SystemColors.ActiveCaptionText;
			this.btnModifyQuestion.ForeColor=Color.Khaki;
			if(flag == 2)
			{
				if(quest !=null)
				{
					quest.Close();
				}
			}
			if(flag==1)
			{
				if(exammgt !=null)
				{
					exammgt.Close();
				}
			}
			flag=3;

			objQuestSearch=new frmQuestionSearch();
			objQuestSearch.ShowDialog();//modify by dongping 2004-12-26
		}

		private void btnGeneratePaper_Click(object sender, System.EventArgs e)
		{
			if(flag == 2)
			{
				if(quest !=null)
				{
					quest.Close();
				}
			}
			else if(flag==1)
			{
				if(exammgt !=null)
				{
					exammgt.Close();
				}
			}
			else if(flag ==3)
			{
				if (objQuestSearch !=null)
				{
					objQuestSearch.Close();
				}
			}

//			else if(flag ==4)
//			{
//				if (objSchedulePaper !=null)
//				{
//					objSchedulePaper.Close();
//				}
//			}
			flag=4;

			
		}

		private void btnHelp_Click(object sender, System.EventArgs e)
		{
			this.btnHelp.ForeColor=Color.Khaki;
			this.btnCreateQuestions.ForeColor=SystemColors.ActiveCaptionText;
			this.btnExamMgmt.ForeColor=SystemColors.ActiveCaptionText;
			this.btnModifyQuestion.ForeColor=SystemColors.ActiveCaptionText;
			//Help.ShowPopup(this, Environment.CurrentDirectory +@"\\OES_Help\OES_Help.chm",new Point(146,115));
			//modify by dong ping 2004-12-25
			Help.ShowHelp(this,Environment.CurrentDirectory +@"\\OES_Help\OES_Help.chm");
		}

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

⌨️ 快捷键说明

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