📄 addemployee.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
using System.Text;
namespace ApplicationForm
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class AddEmployeeForm : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btnExit;
private System.Windows.Forms.Button btnAddEmployee;
private System.Windows.Forms.Label lblCourses;
private System.Windows.Forms.Label lblWorkLoad;
private System.Windows.Forms.ListBox lstCourseList;
private System.Windows.Forms.ListBox lstWorkLoadList;
private System.Windows.Forms.ComboBox cboEmpStatus;
private System.Windows.Forms.Label lblEmpStatus;
private System.Windows.Forms.ComboBox cboEmployeeType;
private System.Windows.Forms.Label lblEmployeeID;
private System.Windows.Forms.TextBox txtEmployeeID;
private System.Windows.Forms.TextBox txtPerAddress;
private System.Windows.Forms.Label lblPerAddress;
private System.Windows.Forms.Label lblEmployeeType;
private System.Windows.Forms.TextBox txtAddress;
private System.Windows.Forms.TextBox txtFirstName;
private System.Windows.Forms.Label lblLastName;
private System.Windows.Forms.Label lblMiddleName;
private System.Windows.Forms.Label lblAddress;
private System.Windows.Forms.TextBox txtLastName;
private System.Windows.Forms.TextBox txtMiddleName;
private System.Windows.Forms.Label lblFirstName;
private System.Windows.Forms.TextBox txtTelePhone;
private System.Windows.Forms.Label lblName;
private System.Windows.Forms.GroupBox grpDetails;
private System.Windows.Forms.Label lblSex;
private System.Windows.Forms.Label lblCode;
private System.Windows.Forms.GroupBox grpCourse;
private System.Windows.Forms.Label lblTelephone;
private System.Windows.Forms.TextBox txtAreacode;
private System.Windows.Forms.Button btnNext;
private System.Windows.Forms.RadioButton rdoMale;
private System.Windows.Forms.RadioButton rdoFemale;
private FileStream fstream;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public AddEmployeeForm()
{
//
// 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 )
{
this.fstream.Close();
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(AddEmployeeForm));
System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
this.lblCourses = new System.Windows.Forms.Label();
this.grpCourse = new System.Windows.Forms.GroupBox();
this.lstWorkLoadList = new System.Windows.Forms.ListBox();
this.lstCourseList = new System.Windows.Forms.ListBox();
this.lblWorkLoad = new System.Windows.Forms.Label();
this.grpDetails = new System.Windows.Forms.GroupBox();
this.cboEmpStatus = new System.Windows.Forms.ComboBox();
this.rdoFemale = new System.Windows.Forms.RadioButton();
this.lblEmpStatus = new System.Windows.Forms.Label();
this.rdoMale = new System.Windows.Forms.RadioButton();
this.lblSex = new System.Windows.Forms.Label();
this.cboEmployeeType = new System.Windows.Forms.ComboBox();
this.lblEmployeeID = new System.Windows.Forms.Label();
this.txtEmployeeID = new System.Windows.Forms.TextBox();
this.txtPerAddress = new System.Windows.Forms.TextBox();
this.txtAreacode = new System.Windows.Forms.TextBox();
this.lblCode = new System.Windows.Forms.Label();
this.lblPerAddress = new System.Windows.Forms.Label();
this.lblEmployeeType = new System.Windows.Forms.Label();
this.txtAddress = new System.Windows.Forms.TextBox();
this.txtFirstName = new System.Windows.Forms.TextBox();
this.lblLastName = new System.Windows.Forms.Label();
this.lblMiddleName = new System.Windows.Forms.Label();
this.lblAddress = new System.Windows.Forms.Label();
this.lblTelephone = new System.Windows.Forms.Label();
this.txtLastName = new System.Windows.Forms.TextBox();
this.txtMiddleName = new System.Windows.Forms.TextBox();
this.lblFirstName = new System.Windows.Forms.Label();
this.txtTelePhone = new System.Windows.Forms.TextBox();
this.lblName = new System.Windows.Forms.Label();
this.btnAddEmployee = new System.Windows.Forms.Button();
this.btnExit = new System.Windows.Forms.Button();
this.btnNext = new System.Windows.Forms.Button();
this.grpCourse.SuspendLayout();
this.grpDetails.SuspendLayout();
this.SuspendLayout();
//
// 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")));
this.lblCourses.Image = ((System.Drawing.Image)(resources.GetObject("lblCourses.Image")));
this.lblCourses.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCourses.ImageAlign")));
this.lblCourses.ImageIndex = ((int)(resources.GetObject("lblCourses.ImageIndex")));
this.lblCourses.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCourses.ImeMode")));
this.lblCourses.Location = ((System.Drawing.Point)(resources.GetObject("lblCourses.Location")));
this.lblCourses.Name = "lblCourses";
this.lblCourses.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCourses.RightToLeft")));
this.lblCourses.Size = ((System.Drawing.Size)(resources.GetObject("lblCourses.Size")));
this.lblCourses.TabIndex = ((int)(resources.GetObject("lblCourses.TabIndex")));
this.lblCourses.Text = resources.GetString("lblCourses.Text");
this.lblCourses.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCourses.TextAlign")));
this.lblCourses.Visible = ((bool)(resources.GetObject("lblCourses.Visible")));
//
// 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.lstWorkLoadList);
this.grpCourse.Controls.Add(this.lstCourseList);
this.grpCourse.Controls.Add(this.lblWorkLoad);
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")));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -