📄 softwareloginframe.cs
字号:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;namespace WindowsApplication{ public class SoftWareLoginFrame : WindowsApplication.copyrightFrame {
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textID;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox textUser;
private System.Windows.Forms.TextBox textZhuCheMa;
private System.Windows.Forms.Button btnZhuChe;
private System.Windows.Forms.Button btnExit; private System.ComponentModel.IContainer components = null; public SoftWareLoginFrame() { // 该调用是 Windows 窗体设计器所必需的。 InitializeComponent(); // TODO: 在 InitializeComponent 调用后添加任何初始化 } /// <summary> /// 清理所有正在使用的资源。 /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region 设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(SoftWareLoginFrame));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label1 = new System.Windows.Forms.Label();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.label2 = new System.Windows.Forms.Label();
this.textID = new System.Windows.Forms.TextBox();
this.textUser = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textZhuCheMa = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.btnZhuChe = new System.Windows.Forms.Button();
this.btnExit = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// AboutLabel
//
this.AboutLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.AboutLabel.Name = "AboutLabel";
this.AboutLabel.Size = new System.Drawing.Size(448, 32);
this.AboutLabel.Text = "软件注册 ";
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(0, 32);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(104, 240);
this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false;
//
// label1
//
this.label1.Location = new System.Drawing.Point(104, 48);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(184, 23);
this.label1.TabIndex = 2;
this.label1.Text = "感谢使用考勤系统管理软件!";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// pictureBox2
//
this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
this.pictureBox2.Location = new System.Drawing.Point(128, 72);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(320, 56);
this.pictureBox2.TabIndex = 3;
this.pictureBox2.TabStop = false;
//
// label2
//
this.label2.Location = new System.Drawing.Point(104, 136);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(80, 23);
this.label2.TabIndex = 4;
this.label2.Text = "序列号:";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// textID
//
this.textID.BackColor = System.Drawing.SystemColors.InactiveBorder;
this.textID.Location = new System.Drawing.Point(192, 136);
this.textID.Name = "textID";
this.textID.Size = new System.Drawing.Size(208, 21);
this.textID.TabIndex = 5;
this.textID.Text = "";
//
// textUser
//
this.textUser.BackColor = System.Drawing.SystemColors.HighlightText;
this.textUser.Location = new System.Drawing.Point(192, 184);
this.textUser.Name = "textUser";
this.textUser.Size = new System.Drawing.Size(208, 21);
this.textUser.TabIndex = 7;
this.textUser.Text = "";
//
// label3
//
this.label3.Location = new System.Drawing.Point(104, 184);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(80, 23);
this.label3.TabIndex = 6;
this.label3.Text = "用户单位:";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// textZhuCheMa
//
this.textZhuCheMa.BackColor = System.Drawing.SystemColors.HighlightText;
this.textZhuCheMa.Location = new System.Drawing.Point(192, 232);
this.textZhuCheMa.Name = "textZhuCheMa";
this.textZhuCheMa.Size = new System.Drawing.Size(208, 21);
this.textZhuCheMa.TabIndex = 9;
this.textZhuCheMa.Text = "";
//
// label4
//
this.label4.Location = new System.Drawing.Point(104, 232);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(80, 23);
this.label4.TabIndex = 8;
this.label4.Text = "注册码:";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// btnZhuChe
//
this.btnZhuChe.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnZhuChe.Location = new System.Drawing.Point(216, 296);
this.btnZhuChe.Name = "btnZhuChe";
this.btnZhuChe.TabIndex = 10;
this.btnZhuChe.Text = "注册(&Z)";
//
// btnExit
//
this.btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnExit.Location = new System.Drawing.Point(328, 296);
this.btnExit.Name = "btnExit";
this.btnExit.TabIndex = 1;
this.btnExit.Text = "退出(&E)";
//
// SoftWareLoginFrame
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackColor = System.Drawing.SystemColors.ControlLight;
this.CancelButton = this.btnExit;
this.ClientSize = new System.Drawing.Size(442, 335);
this.Controls.Add(this.btnExit);
this.Controls.Add(this.btnZhuChe);
this.Controls.Add(this.textZhuCheMa);
this.Controls.Add(this.label4);
this.Controls.Add(this.textUser);
this.Controls.Add(this.label3);
this.Controls.Add(this.textID);
this.Controls.Add(this.label2);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1);
this.Name = "SoftWareLoginFrame";
this.Text = "SoftWareLoginFrame";
this.Controls.SetChildIndex(this.pictureBox1, 0);
this.Controls.SetChildIndex(this.label1, 0);
this.Controls.SetChildIndex(this.pictureBox2, 0);
this.Controls.SetChildIndex(this.label2, 0);
this.Controls.SetChildIndex(this.textID, 0);
this.Controls.SetChildIndex(this.AboutLabel, 0);
this.Controls.SetChildIndex(this.label3, 0);
this.Controls.SetChildIndex(this.textUser, 0);
this.Controls.SetChildIndex(this.label4, 0);
this.Controls.SetChildIndex(this.textZhuCheMa, 0);
this.Controls.SetChildIndex(this.btnZhuChe, 0);
this.Controls.SetChildIndex(this.btnExit, 0);
this.ResumeLayout(false);
} #endregion }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -