📄 addstudent.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace ApplicationForm
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class AddStudentForm : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btnAddStudent;
private System.Windows.Forms.Button btnExit;
private System.Windows.Forms.Label lblCourses;
private System.Windows.Forms.ListBox lstCourseList;
private System.Windows.Forms.TextBox txtTelePhone;
private System.Windows.Forms.Label lblStudentType;
private System.Windows.Forms.Label lblStudentID;
private System.Windows.Forms.TextBox txtPerAddress;
private System.Windows.Forms.Label lblPerAddress;
private System.Windows.Forms.TextBox txtMiddleName;
private System.Windows.Forms.ComboBox cboStudentType;
private System.Windows.Forms.Label lblAddress;
private System.Windows.Forms.TextBox txtStdEnNo;
private System.Windows.Forms.Label lblFirstName;
private System.Windows.Forms.Label lblLastName;
private System.Windows.Forms.Label lblMiddleName;
private System.Windows.Forms.TextBox txtFirstName;
private System.Windows.Forms.TextBox txtAddress;
private System.Windows.Forms.TextBox txtLastName;
private System.Windows.Forms.Label lblSex;
private System.Windows.Forms.Label lblTelephone;
private System.Windows.Forms.Label lblName;
private System.Windows.Forms.Label lblCode;
private System.Windows.Forms.GroupBox grpCourse;
private System.Windows.Forms.GroupBox grpDetails;
private System.Windows.Forms.RadioButton radFemale;
private System.Windows.Forms.RadioButton radMale;
private System.Windows.Forms.TextBox txtAreacode;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public AddStudentForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// 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(AddStudentForm));
System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
this.grpCourse = new System.Windows.Forms.GroupBox();
this.lstCourseList = new System.Windows.Forms.ListBox();
this.lblCourses = new System.Windows.Forms.Label();
this.btnAddStudent = new System.Windows.Forms.Button();
this.btnExit = new System.Windows.Forms.Button();
this.grpDetails = new System.Windows.Forms.GroupBox();
this.lblName = new System.Windows.Forms.Label();
this.txtTelePhone = new System.Windows.Forms.TextBox();
this.lblStudentType = new System.Windows.Forms.Label();
this.lblStudentID = new System.Windows.Forms.Label();
this.txtPerAddress = new System.Windows.Forms.TextBox();
this.lblPerAddress = new System.Windows.Forms.Label();
this.radFemale = new System.Windows.Forms.RadioButton();
this.radMale = new System.Windows.Forms.RadioButton();
this.lblSex = new System.Windows.Forms.Label();
this.txtMiddleName = new System.Windows.Forms.TextBox();
this.cboStudentType = new System.Windows.Forms.ComboBox();
this.lblAddress = new System.Windows.Forms.Label();
this.lblTelephone = new System.Windows.Forms.Label();
this.txtStdEnNo = new System.Windows.Forms.TextBox();
this.lblFirstName = new System.Windows.Forms.Label();
this.lblLastName = new System.Windows.Forms.Label();
this.lblMiddleName = new System.Windows.Forms.Label();
this.txtFirstName = new System.Windows.Forms.TextBox();
this.txtAddress = new System.Windows.Forms.TextBox();
this.lblCode = new System.Windows.Forms.Label();
this.txtAreacode = new System.Windows.Forms.TextBox();
this.txtLastName = new System.Windows.Forms.TextBox();
this.grpCourse.SuspendLayout();
this.grpDetails.SuspendLayout();
this.SuspendLayout();
//
// grpCourse
//
this.grpCourse.AccessibleDescription = resources.GetString("grpCourse.AccessibleDescription");
this.grpCourse.AccessibleName = resources.GetString("grpCourse.AccessibleName");
this.grpCourse.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("grpCourse.Anchor")));
this.grpCourse.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("grpCourse.BackgroundImage")));
this.grpCourse.Controls.Add(this.lstCourseList);
this.grpCourse.Controls.Add(this.lblCourses);
this.grpCourse.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("grpCourse.Dock")));
this.grpCourse.Enabled = ((bool)(resources.GetObject("grpCourse.Enabled")));
this.grpCourse.Font = ((System.Drawing.Font)(resources.GetObject("grpCourse.Font")));
this.grpCourse.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("grpCourse.ImeMode")));
this.grpCourse.Location = ((System.Drawing.Point)(resources.GetObject("grpCourse.Location")));
this.grpCourse.Name = "grpCourse";
this.grpCourse.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("grpCourse.RightToLeft")));
this.grpCourse.Size = ((System.Drawing.Size)(resources.GetObject("grpCourse.Size")));
this.grpCourse.TabIndex = ((int)(resources.GetObject("grpCourse.TabIndex")));
this.grpCourse.TabStop = false;
this.grpCourse.Text = resources.GetString("grpCourse.Text");
this.grpCourse.Visible = ((bool)(resources.GetObject("grpCourse.Visible")));
//
// lstCourseList
//
this.lstCourseList.AccessibleDescription = resources.GetString("lstCourseList.AccessibleDescription");
this.lstCourseList.AccessibleName = resources.GetString("lstCourseList.AccessibleName");
this.lstCourseList.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lstCourseList.Anchor")));
this.lstCourseList.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("lstCourseList.BackgroundImage")));
this.lstCourseList.ColumnWidth = ((int)(resources.GetObject("lstCourseList.ColumnWidth")));
this.lstCourseList.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lstCourseList.Dock")));
this.lstCourseList.Enabled = ((bool)(resources.GetObject("lstCourseList.Enabled")));
this.lstCourseList.Font = ((System.Drawing.Font)(resources.GetObject("lstCourseList.Font")));
this.lstCourseList.HorizontalExtent = ((int)(resources.GetObject("lstCourseList.HorizontalExtent")));
this.lstCourseList.HorizontalScrollbar = ((bool)(resources.GetObject("lstCourseList.HorizontalScrollbar")));
this.lstCourseList.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lstCourseList.ImeMode")));
this.lstCourseList.IntegralHeight = ((bool)(resources.GetObject("lstCourseList.IntegralHeight")));
this.lstCourseList.ItemHeight = ((int)(resources.GetObject("lstCourseList.ItemHeight")));
this.lstCourseList.Items.AddRange(new object[] {
resources.GetString("lstCourseList.Items"),
resources.GetString("lstCourseList.Items1"),
resources.GetString("lstCourseList.Items2"),
resources.GetString("lstCourseList.Items3"),
resources.GetString("lstCourseList.Items4"),
resources.GetString("lstCourseList.Items5"),
resources.GetString("lstCourseList.Items6")});
this.lstCourseList.Location = ((System.Drawing.Point)(resources.GetObject("lstCourseList.Location")));
this.lstCourseList.Name = "lstCourseList";
this.lstCourseList.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lstCourseList.RightToLeft")));
this.lstCourseList.ScrollAlwaysVisible = ((bool)(resources.GetObject("lstCourseList.ScrollAlwaysVisible")));
this.lstCourseList.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
this.lstCourseList.Size = ((System.Drawing.Size)(resources.GetObject("lstCourseList.Size")));
this.lstCourseList.TabIndex = ((int)(resources.GetObject("lstCourseList.TabIndex")));
this.lstCourseList.Visible = ((bool)(resources.GetObject("lstCourseList.Visible")));
//
// lblCourses
//
this.lblCourses.AccessibleDescription = resources.GetString("lblCourses.AccessibleDescription");
this.lblCourses.AccessibleName = resources.GetString("lblCourses.AccessibleName");
this.lblCourses.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCourses.Anchor")));
this.lblCourses.AutoSize = ((bool)(resources.GetObject("lblCourses.AutoSize")));
this.lblCourses.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCourses.Dock")));
this.lblCourses.Enabled = ((bool)(resources.GetObject("lblCourses.Enabled")));
this.lblCourses.Font = ((System.Drawing.Font)(resources.GetObject("lblCourses.Font")));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -