📄 stms_stutest.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
namespace WindowsApplication1
{
/// <summary>
/// STMS_StuTest 的摘要说明。
/// </summary>
public class STMS_StuTest : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox textBox7;
private System.Windows.Forms.TextBox textBox8;
private System.Windows.Forms.DataGrid dg;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public STMS_StuTest()
{
//
// 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()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(STMS_StuTest));
this.button2 = new System.Windows.Forms.Button();
this.label6 = new System.Windows.Forms.Label();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label7 = new System.Windows.Forms.Label();
this.textBox5 = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.textBox4 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.dg = new System.Windows.Forms.DataGrid();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.textBox8 = new System.Windows.Forms.TextBox();
this.textBox7 = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dg)).BeginInit();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// button2
//
this.button2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button2.BackgroundImage")));
this.button2.Cursor = System.Windows.Forms.Cursors.Hand;
this.button2.Location = new System.Drawing.Point(352, 360);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(80, 32);
this.button2.TabIndex = 35;
this.button2.Text = "添 加";
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// label6
//
this.label6.Image = ((System.Drawing.Image)(resources.GetObject("label6.Image")));
this.label6.Location = new System.Drawing.Point(0, 280);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(40, 24);
this.label6.TabIndex = 34;
this.label6.Text = "月 份";
//
// comboBox2
//
this.comboBox2.Items.AddRange(new object[] {
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12"});
this.comboBox2.Location = new System.Drawing.Point(45, 280);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(105, 20);
this.comboBox2.TabIndex = 33;
//
// label7
//
this.label7.Image = ((System.Drawing.Image)(resources.GetObject("label7.Image")));
this.label7.Location = new System.Drawing.Point(0, 248);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(40, 20);
this.label7.TabIndex = 32;
this.label7.Text = "学 号";
//
// textBox5
//
this.textBox5.Location = new System.Drawing.Point(45, 248);
this.textBox5.Name = "textBox5";
this.textBox5.ReadOnly = true;
this.textBox5.Size = new System.Drawing.Size(104, 21);
this.textBox5.TabIndex = 31;
this.textBox5.Text = "";
//
// label5
//
this.label5.Image = ((System.Drawing.Image)(resources.GetObject("label5.Image")));
this.label5.Location = new System.Drawing.Point(155, 248);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(45, 15);
this.label5.TabIndex = 30;
this.label5.Text = "学 期";
//
// comboBox1
//
this.comboBox1.Items.AddRange(new object[] {
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"});
this.comboBox1.Location = new System.Drawing.Point(208, 248);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(110, 20);
this.comboBox1.TabIndex = 29;
//
// label4
//
this.label4.Image = ((System.Drawing.Image)(resources.GetObject("label4.Image")));
this.label4.Location = new System.Drawing.Point(0, 352);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(40, 20);
this.label4.TabIndex = 28;
this.label4.Text = "学 分";
//
// label3
//
this.label3.Image = ((System.Drawing.Image)(resources.GetObject("label3.Image")));
this.label3.Location = new System.Drawing.Point(155, 280);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(45, 20);
this.label3.TabIndex = 27;
this.label3.Text = "早 退";
//
// label2
//
this.label2.Image = ((System.Drawing.Image)(resources.GetObject("label2.Image")));
this.label2.Location = new System.Drawing.Point(152, 320);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(48, 20);
this.label2.TabIndex = 26;
this.label2.Text = "旷 课";
//
// label1
//
this.label1.Image = ((System.Drawing.Image)(resources.GetObject("label1.Image")));
this.label1.Location = new System.Drawing.Point(0, 312);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(40, 24);
this.label1.TabIndex = 25;
this.label1.Text = "迟 到";
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(45, 352);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(104, 21);
this.textBox4.TabIndex = 24;
this.textBox4.Text = "";
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(208, 320);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(110, 21);
this.textBox3.TabIndex = 23;
this.textBox3.Text = "";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(208, 280);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(110, 21);
this.textBox2.TabIndex = 22;
this.textBox2.Text = "";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(45, 312);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(104, 21);
this.textBox1.TabIndex = 21;
this.textBox1.Text = "";
//
// button1
//
this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
this.button1.Cursor = System.Windows.Forms.Cursors.Hand;
this.button1.Location = new System.Drawing.Point(488, 320);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(80, 32);
this.button1.TabIndex = 18;
this.button1.Text = "删 除";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// dg
//
this.dg.DataMember = "";
this.dg.Dock = System.Windows.Forms.DockStyle.Top;
this.dg.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dg.Location = new System.Drawing.Point(0, 0);
this.dg.Name = "dg";
this.dg.Size = new System.Drawing.Size(584, 225);
this.dg.TabIndex = 17;
//
// button3
//
this.button3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button3.BackgroundImage")));
this.button3.Cursor = System.Windows.Forms.Cursors.Hand;
this.button3.Location = new System.Drawing.Point(352, 312);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(80, 32);
this.button3.TabIndex = 20;
this.button3.Text = "修 改";
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -