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

📄 frmaddscore.cs

📁 一个学籍管理系统 以在某高校投入使用了
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace prjClass
{
	/// <summary>
	/// frmAddScore 的摘要说明。
	/// </summary>
	public class frmAddScore : System.Windows.Forms.Form
	{
		private Class1 c = new Class1();
		private DataAccess da = new DataAccess();
		private System.Windows.Forms.Button btnOK;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.GroupBox groupBox4;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.ListView listView1;
		private System.Windows.Forms.ListView listView2;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.TextBox txtCourse;
		private System.Windows.Forms.TextBox txtStu;
		private System.Windows.Forms.TextBox txtSeme;
		private System.Windows.Forms.TextBox txtScore;
		private System.Windows.Forms.Button btnCancle;
		private System.Windows.Forms.ComboBox cboSpec;
		private System.Windows.Forms.ComboBox cboClass;
		private System.Windows.Forms.ComboBox cboSeme;
		private System.Windows.Forms.ImageList imageList1;
		private System.ComponentModel.IContainer components;

		public frmAddScore()
		{
			//
			// 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()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmAddScore));
			this.btnOK = new System.Windows.Forms.Button();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.cboSeme = new System.Windows.Forms.ComboBox();
			this.cboClass = new System.Windows.Forms.ComboBox();
			this.cboSpec = new System.Windows.Forms.ComboBox();
			this.label3 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.listView2 = new System.Windows.Forms.ListView();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.txtScore = new System.Windows.Forms.TextBox();
			this.txtSeme = new System.Windows.Forms.TextBox();
			this.txtStu = new System.Windows.Forms.TextBox();
			this.txtCourse = new System.Windows.Forms.TextBox();
			this.label7 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.groupBox4 = new System.Windows.Forms.GroupBox();
			this.listView1 = new System.Windows.Forms.ListView();
			this.btnCancle = new System.Windows.Forms.Button();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.groupBox4.SuspendLayout();
			this.SuspendLayout();
			// 
			// btnOK
			// 
			this.btnOK.Location = new System.Drawing.Point(544, 344);
			this.btnOK.Name = "btnOK";
			this.btnOK.TabIndex = 0;
			this.btnOK.Text = "录入成绩";
			this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.cboSeme);
			this.groupBox1.Controls.Add(this.cboClass);
			this.groupBox1.Controls.Add(this.cboSpec);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Location = new System.Drawing.Point(24, 40);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(224, 192);
			this.groupBox1.TabIndex = 1;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "选择班级学期";
			// 
			// cboSeme
			// 
			this.cboSeme.Location = new System.Drawing.Point(72, 136);
			this.cboSeme.Name = "cboSeme";
			this.cboSeme.Size = new System.Drawing.Size(121, 20);
			this.cboSeme.TabIndex = 5;
			this.cboSeme.Text = "comboBox3";
			this.cboSeme.SelectedIndexChanged += new System.EventHandler(this.cboSeme_SelectedIndexChanged);
			// 
			// cboClass
			// 
			this.cboClass.Location = new System.Drawing.Point(72, 80);
			this.cboClass.Name = "cboClass";
			this.cboClass.Size = new System.Drawing.Size(121, 20);
			this.cboClass.TabIndex = 4;
			this.cboClass.Text = "comboBox2";
			this.cboClass.SelectedIndexChanged += new System.EventHandler(this.cboClass_SelectedIndexChanged);
			// 
			// cboSpec
			// 
			this.cboSpec.Location = new System.Drawing.Point(72, 32);
			this.cboSpec.Name = "cboSpec";
			this.cboSpec.Size = new System.Drawing.Size(121, 20);
			this.cboSpec.TabIndex = 3;
			this.cboSpec.Text = "comboBox1";
			this.cboSpec.SelectedIndexChanged += new System.EventHandler(this.cboSpec_SelectedIndexChanged);
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(24, 136);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(48, 23);
			this.label3.TabIndex = 2;
			this.label3.Text = "学期";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(24, 80);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(48, 23);
			this.label2.TabIndex = 1;
			this.label2.Text = "班级";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(24, 32);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(48, 23);
			this.label1.TabIndex = 0;
			this.label1.Text = "专业";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.listView2);
			this.groupBox2.Location = new System.Drawing.Point(24, 248);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(472, 144);
			this.groupBox2.TabIndex = 2;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "学生名单";
			// 
			// listView2
			// 
			this.listView2.Location = new System.Drawing.Point(16, 32);
			this.listView2.Name = "listView2";
			this.listView2.Size = new System.Drawing.Size(432, 97);
			this.listView2.SmallImageList = this.imageList1;
			this.listView2.TabIndex = 0;
			this.listView2.View = System.Windows.Forms.View.List;
			this.listView2.SelectedIndexChanged += new System.EventHandler(this.listView2_SelectedIndexChanged);
			// 
			// imageList1
			// 
			this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
			this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.txtScore);
			this.groupBox3.Controls.Add(this.txtSeme);
			this.groupBox3.Controls.Add(this.txtStu);
			this.groupBox3.Controls.Add(this.txtCourse);
			this.groupBox3.Controls.Add(this.label7);
			this.groupBox3.Controls.Add(this.label6);
			this.groupBox3.Controls.Add(this.label5);
			this.groupBox3.Controls.Add(this.label4);
			this.groupBox3.Location = new System.Drawing.Point(520, 40);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(224, 272);
			this.groupBox3.TabIndex = 3;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "成绩";
			// 
			// txtScore
			// 
			this.txtScore.Location = new System.Drawing.Point(72, 192);
			this.txtScore.Name = "txtScore";
			this.txtScore.Size = new System.Drawing.Size(64, 21);
			this.txtScore.TabIndex = 8;
			this.txtScore.Text = "";
			// 
			// txtSeme
			// 
			this.txtSeme.Enabled = false;
			this.txtSeme.Location = new System.Drawing.Point(72, 144);
			this.txtSeme.Name = "txtSeme";
			this.txtSeme.TabIndex = 7;
			this.txtSeme.Text = "";
			// 
			// txtStu
			// 
			this.txtStu.Enabled = false;
			this.txtStu.Location = new System.Drawing.Point(72, 96);
			this.txtStu.Name = "txtStu";
			this.txtStu.TabIndex = 6;
			this.txtStu.Text = "";
			// 
			// txtCourse
			// 
			this.txtCourse.Enabled = false;
			this.txtCourse.Location = new System.Drawing.Point(72, 48);
			this.txtCourse.Name = "txtCourse";
			this.txtCourse.TabIndex = 5;
			this.txtCourse.Text = "";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(24, 192);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(48, 23);
			this.label7.TabIndex = 4;
			this.label7.Text = "成绩";
			// 

⌨️ 快捷键说明

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