📄 pwdupdate.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
namespace WindowsApplication4
{
/// <summary>
/// PwdUpdate 的摘要说明。
/// </summary>
public class PwdUpdate : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Data.SqlClient.SqlDataAdapter PwdAdapter;
private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
private System.Data.SqlClient.SqlConnection sqlConnection1;
private string userID;
private string passWord;
private string NewPassWord1;
private string NewPassWord2;
private System.Windows.Forms.TextBox textPwdNew2;
private System.Windows.Forms.TextBox textPwdNew1;
private System.Windows.Forms.TextBox textPwdOld;
private System.Windows.Forms.TextBox textID;
private System.Windows.Forms.Button sure_button;
private System.Windows.Forms.Button esc_button;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public PwdUpdate()
{
//
// 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()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.textPwdNew2 = new System.Windows.Forms.TextBox();
this.textPwdNew1 = new System.Windows.Forms.TextBox();
this.textPwdOld = new System.Windows.Forms.TextBox();
this.textID = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.sure_button = new System.Windows.Forms.Button();
this.esc_button = new System.Windows.Forms.Button();
this.PwdAdapter = new System.Data.SqlClient.SqlDataAdapter();
this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.textPwdNew2);
this.groupBox1.Controls.Add(this.textPwdNew1);
this.groupBox1.Controls.Add(this.textPwdOld);
this.groupBox1.Controls.Add(this.textID);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Location = new System.Drawing.Point(40, 32);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(248, 168);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
//
// textPwdNew2
//
this.textPwdNew2.Location = new System.Drawing.Point(136, 120);
this.textPwdNew2.Name = "textPwdNew2";
this.textPwdNew2.PasswordChar = '*';
this.textPwdNew2.Size = new System.Drawing.Size(88, 21);
this.textPwdNew2.TabIndex = 7;
this.textPwdNew2.Text = "";
//
// textPwdNew1
//
this.textPwdNew1.Location = new System.Drawing.Point(136, 88);
this.textPwdNew1.Name = "textPwdNew1";
this.textPwdNew1.PasswordChar = '*';
this.textPwdNew1.Size = new System.Drawing.Size(88, 21);
this.textPwdNew1.TabIndex = 6;
this.textPwdNew1.Text = "";
//
// textPwdOld
//
this.textPwdOld.Location = new System.Drawing.Point(136, 56);
this.textPwdOld.Name = "textPwdOld";
this.textPwdOld.PasswordChar = '*';
this.textPwdOld.Size = new System.Drawing.Size(88, 21);
this.textPwdOld.TabIndex = 5;
this.textPwdOld.Text = "";
//
// textID
//
this.textID.Location = new System.Drawing.Point(136, 24);
this.textID.Name = "textID";
this.textID.Size = new System.Drawing.Size(88, 21);
this.textID.TabIndex = 4;
this.textID.Text = "";
//
// label4
//
this.label4.Location = new System.Drawing.Point(16, 120);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(104, 32);
this.label4.TabIndex = 3;
this.label4.Text = "*请输入新密码:";
//
// label2
//
this.label2.Location = new System.Drawing.Point(8, 56);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(128, 24);
this.label2.TabIndex = 1;
this.label2.Text = "*请输入用户原密码:";
//
// label1
//
this.label1.Location = new System.Drawing.Point(16, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(104, 24);
this.label1.TabIndex = 0;
this.label1.Text = "*请输入用户ID:";
//
// label3
//
this.label3.Location = new System.Drawing.Point(16, 88);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(104, 16);
this.label3.TabIndex = 2;
this.label3.Text = "*请输入新密码:";
//
// sure_button
//
this.sure_button.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.sure_button.Location = new System.Drawing.Point(56, 216);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -