You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
2 weeks ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.ComponentModel;
|
||
|
using System.Data;
|
||
|
using System.Drawing;
|
||
|
using System.Text;
|
||
|
using System.Windows.Forms;
|
||
|
using System.Data.SqlClient;
|
||
|
using Stone.Common;
|
||
|
|
||
|
namespace Stone.User
|
||
|
{
|
||
|
public partial class frmPassword : Form
|
||
|
{
|
||
|
public frmPassword()
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
}
|
||
|
|
||
|
private void b_ok_Click(object sender, EventArgs e)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
if (!this.t_password.Text.Trim().Equals(this.t_re_password.Text.Trim()))
|
||
|
{
|
||
|
MessageBox.Show("两次输入的密码不一样!");
|
||
|
this.t_re_password.Focus();
|
||
|
this.t_re_password.SelectAll();
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
F_UserInfo.Password(UserInfo.UserName, this.t_old_password.Text.Trim(), this.t_password.Text.Trim());
|
||
|
|
||
|
|
||
|
MyMessageBox.ShowInfoMessage("密码修改成功");
|
||
|
//this.Close();
|
||
|
|
||
|
}
|
||
|
catch (SqlException ex)
|
||
|
{
|
||
|
MyMessageBox.ShowErrorMessage(ex.Message);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
private void b_exit_Click(object sender, EventArgs e)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|