RaUI/Source/ryControls/TreeXML/frmChangePwd.cs
2020-11-28 15:03:57 +08:00

48 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ryControls.TreeXML
{
/// <summary>
///
/// </summary>
public partial class FrmChangePwd : Form
{
/// <summary>
///
/// </summary>
public FrmChangePwd()
{
InitializeComponent();
}
/// <summary>
///旧密码
/// </summary>
public string oldPwd = "";
/// <summary>
/// 新密码
/// </summary>
public string NewPwd = "";
private void BtnOK_Click(object sender, EventArgs e)
{
if (txtOldPwd.Text != oldPwd)
{
MessageBox.Show("您输入的旧密码不正确!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (txtNewPwd.Text != txtRePwd.Text)
{
MessageBox.Show("您两次输入的新密码不一致!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
NewPwd = txtNewPwd.Text;
this.DialogResult = DialogResult.OK;
}
}
}