11.1日报
今天完成人机交互C/S架构部分实验内容,完成了添加成绩板块
namespace test1 { partial class Form2 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (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() { this.groupBox1 = new System.Windows.Forms.GroupBox(); this.listBox1 = new System.Windows.Forms.ListBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.listBox2 = new System.Windows.Forms.ListBox(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.button2 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.textBoxstudent = new System.Windows.Forms.TextBox(); this.textBoxgrade = new System.Windows.Forms.TextBox(); this.textBoxclass = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox4.SuspendLayout(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Controls.Add(this.listBox1); this.groupBox1.Location = new System.Drawing.Point(21, 32); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(203, 394); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "课程"; // // listBox1 // this.listBox1.FormattingEnabled = true; this.listBox1.ItemHeight = 12; this.listBox1.Location = new System.Drawing.Point(20, 21); this.listBox1.Name = "listBox1"; this.listBox1.Size = new System.Drawing.Size(162, 352); this.listBox1.TabIndex = 1; this.listBox1.SelectedIndexChanged += new System.EventHandler(this.class_click); // // groupBox2 // this.groupBox2.Controls.Add(this.listBox2); this.groupBox2.Location = new System.Drawing.Point(245, 32); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(182, 394); this.groupBox2.TabIndex = 1; this.groupBox2.TabStop = false; this.groupBox2.Text = "学生"; this.groupBox2.Enter += new System.EventHandler(this.groupBox2_Enter); // // listBox2 // this.listBox2.FormattingEnabled = true; this.listBox2.ItemHeight = 12; this.listBox2.Location = new System.Drawing.Point(10, 20); this.listBox2.Name = "listBox2"; this.listBox2.Size = new System.Drawing.Size(162, 352); this.listBox2.TabIndex = 0; this.listBox2.SelectedIndexChanged += new System.EventHandler(this.listBox2_SelectedIndexChanged); // // groupBox3 // this.groupBox3.Controls.Add(this.button2); this.groupBox3.Controls.Add(this.button1); this.groupBox3.Controls.Add(this.comboBox1); this.groupBox3.Controls.Add(this.textBoxstudent); this.groupBox3.Controls.Add(this.textBoxgrade); this.groupBox3.Controls.Add(this.textBoxclass); this.groupBox3.Controls.Add(this.label5); this.groupBox3.Controls.Add(this.label4); this.groupBox3.Controls.Add(this.label3); this.groupBox3.Controls.Add(this.label1); this.groupBox3.Location = new System.Drawing.Point(473, 32); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(213, 394); this.groupBox3.TabIndex = 2; this.groupBox3.TabStop = false; this.groupBox3.Text = "成绩"; // // button2 // this.button2.Location = new System.Drawing.Point(123, 297); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(72, 28); this.button2.TabIndex = 12; this.button2.Text = "取消"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // button1 // this.button1.Location = new System.Drawing.Point(25, 297); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(68, 28); this.button1.TabIndex = 11; this.button1.Text = "录入成绩"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // comboBox1 // this.comboBox1.FormattingEnabled = true; this.comboBox1.Items.AddRange(new object[] { "2012年春季学期", "2012年秋季学期", "2013年春季学期", "2013年秋季学期"}); this.comboBox1.Location = new System.Drawing.Point(65, 41); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(140, 20); this.comboBox1.TabIndex = 10; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // textBoxstudent // this.textBoxstudent.Location = new System.Drawing.Point(65, 95); this.textBoxstudent.Name = "textBoxstudent"; this.textBoxstudent.ReadOnly = true; this.textBoxstudent.Size = new System.Drawing.Size(142, 21); this.textBoxstudent.TabIndex = 9; this.textBoxstudent.TextChanged += new System.EventHandler(this.textBoxstudent_TextChanged); // // textBoxgrade // this.textBoxgrade.Location = new System.Drawing.Point(65, 208); this.textBoxgrade.Name = "textBoxgrade"; this.textBoxgrade.Size = new System.Drawing.Size(142, 21); this.textBoxgrade.TabIndex = 7; // // textBoxclass // this.textBoxclass.Location = new System.Drawing.Point(65, 142); this.textBoxclass.Name = "textBoxclass"; this.textBoxclass.ReadOnly = true; this.textBoxclass.Size = new System.Drawing.Size(142, 21); this.textBoxclass.TabIndex = 5; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(16, 98); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(53, 12); this.label5.TabIndex = 4; this.label5.Text = "学生学号"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(14, 44); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(29, 12); this.label4.TabIndex = 3; this.label4.Text = "学期"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(16, 208); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(29, 12); this.label3.TabIndex = 2; this.label3.Text = "成绩"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(16, 145); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(29, 12); this.label1.TabIndex = 0; this.label1.Text = "课程"; // // groupBox4 // this.groupBox4.Controls.Add(this.groupBox3); this.groupBox4.Controls.Add(this.groupBox2); this.groupBox4.Controls.Add(this.groupBox1); this.groupBox4.Location = new System.Drawing.Point(9, 4); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(703, 443); this.groupBox4.TabIndex = 3; this.groupBox4.TabStop = false; this.groupBox4.Text = "录入成绩"; this.groupBox4.Enter += new System.EventHandler(this.groupBox4_Enter); // // Form2 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(724, 459); this.Controls.Add(this.groupBox4); this.Name = "Form2"; this.Text = "Form2"; this.Load += new System.EventHandler(this.Form2_Load); this.groupBox1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); this.groupBox4.ResumeLayout(false); this.ResumeLayout(false); } #endregion private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.ListBox listBox2; private System.Windows.Forms.GroupBox groupBox3; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button1; private System.Windows.Forms.ComboBox comboBox1; private System.Windows.Forms.TextBox textBoxstudent; private System.Windows.Forms.TextBox textBoxgrade; private System.Windows.Forms.TextBox textBoxclass; private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label1; private System.Windows.Forms.GroupBox groupBox4; private System.Windows.Forms.ListBox listBox1; } }
namespace test1{ partial class Form2 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null;
/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (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() { this.groupBox1 = new System.Windows.Forms.GroupBox(); this.listBox1 = new System.Windows.Forms.ListBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.listBox2 = new System.Windows.Forms.ListBox(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.button2 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.textBoxstudent = new System.Windows.Forms.TextBox(); this.textBoxgrade = new System.Windows.Forms.TextBox(); this.textBoxclass = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox4.SuspendLayout(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Controls.Add(this.listBox1); this.groupBox1.Location = new System.Drawing.Point(21, 32); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(203, 394); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "课程"; // // listBox1 // this.listBox1.FormattingEnabled = true; this.listBox1.ItemHeight = 12; this.listBox1.Location = new System.Drawing.Point(20, 21); this.listBox1.Name = "listBox1"; this.listBox1.Size = new System.Drawing.Size(162, 352); this.listBox1.TabIndex = 1; this.listBox1.SelectedIndexChanged += new System.EventHandler(this.class_click); // // groupBox2 // this.groupBox2.Controls.Add(this.listBox2); this.groupBox2.Location = new System.Drawing.Point(245, 32); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(182, 394); this.groupBox2.TabIndex = 1; this.groupBox2.TabStop = false; this.groupBox2.Text = "学生"; this.groupBox2.Enter += new System.EventHandler(this.groupBox2_Enter); // // listBox2 // this.listBox2.FormattingEnabled = true; this.listBox2.ItemHeight = 12; this.listBox2.Location = new System.Drawing.Point(10, 20); this.listBox2.Name = "listBox2"; this.listBox2.Size = new System.Drawing.Size(162, 352); this.listBox2.TabIndex = 0; this.listBox2.SelectedIndexChanged += new System.EventHandler(this.listBox2_SelectedIndexChanged); // // groupBox3 // this.groupBox3.Controls.Add(this.button2); this.groupBox3.Controls.Add(this.button1); this.groupBox3.Controls.Add(this.comboBox1); this.groupBox3.Controls.Add(this.textBoxstudent); this.groupBox3.Controls.Add(this.textBoxgrade); this.groupBox3.Controls.Add(this.textBoxclass); this.groupBox3.Controls.Add(this.label5); this.groupBox3.Controls.Add(this.label4); this.groupBox3.Controls.Add(this.label3); this.groupBox3.Controls.Add(this.label1); this.groupBox3.Location = new System.Drawing.Point(473, 32); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(213, 394); this.groupBox3.TabIndex = 2; this.groupBox3.TabStop = false; this.groupBox3.Text = "成绩"; // // button2 // this.button2.Location = new System.Drawing.Point(123, 297); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(72, 28); this.button2.TabIndex = 12; this.button2.Text = "取消"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // button1 // this.button1.Location = new System.Drawing.Point(25, 297); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(68, 28); this.button1.TabIndex = 11; this.button1.Text = "录入成绩"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // comboBox1 // this.comboBox1.FormattingEnabled = true; this.comboBox1.Items.AddRange(new object[] { "2012年春季学期", "2012年秋季学期", "2013年春季学期", "2013年秋季学期"}); this.comboBox1.Location = new System.Drawing.Point(65, 41); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(140, 20); this.comboBox1.TabIndex = 10; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // textBoxstudent // this.textBoxstudent.Location = new System.Drawing.Point(65, 95); this.textBoxstudent.Name = "textBoxstudent"; this.textBoxstudent.ReadOnly = true; this.textBoxstudent.Size = new System.Drawing.Size(142, 21); this.textBoxstudent.TabIndex = 9; this.textBoxstudent.TextChanged += new System.EventHandler(this.textBoxstudent_TextChanged); // // textBoxgrade // this.textBoxgrade.Location = new System.Drawing.Point(65, 208); this.textBoxgrade.Name = "textBoxgrade"; this.textBoxgrade.Size = new System.Drawing.Size(142, 21); this.textBoxgrade.TabIndex = 7; // // textBoxclass // this.textBoxclass.Location = new System.Drawing.Point(65, 142); this.textBoxclass.Name = "textBoxclass"; this.textBoxclass.ReadOnly = true; this.textBoxclass.Size = new System.Drawing.Size(142, 21); this.textBoxclass.TabIndex = 5; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(16, 98); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(53, 12); this.label5.TabIndex = 4; this.label5.Text = "学生学号"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(14, 44); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(29, 12); this.label4.TabIndex = 3; this.label4.Text = "学期"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(16, 208); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(29, 12); this.label3.TabIndex = 2; this.label3.Text = "成绩"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(16, 145); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(29, 12); this.label1.TabIndex = 0; this.label1.Text = "课程"; // // groupBox4 // this.groupBox4.Controls.Add(this.groupBox3); this.groupBox4.Controls.Add(this.groupBox2); this.groupBox4.Controls.Add(this.groupBox1); this.groupBox4.Location = new System.Drawing.Point(9, 4); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(703, 443); this.groupBox4.TabIndex = 3; this.groupBox4.TabStop = false; this.groupBox4.Text = "录入成绩"; this.groupBox4.Enter += new System.EventHandler(this.groupBox4_Enter); // // Form2 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(724, 459); this.Controls.Add(this.groupBox4); this.Name = "Form2"; this.Text = "Form2"; this.Load += new System.EventHandler(this.Form2_Load); this.groupBox1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); this.groupBox4.ResumeLayout(false); this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.ListBox listBox2; private System.Windows.Forms.GroupBox groupBox3; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button1; private System.Windows.Forms.ComboBox comboBox1; private System.Windows.Forms.TextBox textBoxstudent; private System.Windows.Forms.TextBox textBoxgrade; private System.Windows.Forms.TextBox textBoxclass; private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label1; private System.Windows.Forms.GroupBox groupBox4; private System.Windows.Forms.ListBox listBox1;
}}