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.
30 lines
754 B
30 lines
754 B
using BBWY.Controls;
|
|
using System.Windows;
|
|
|
|
namespace BBWY.Client.Views.Setting
|
|
{
|
|
/// <summary>
|
|
/// ValidateManagePwd.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class ValidateManagePwd : BWindow
|
|
{
|
|
|
|
private string managePwd;
|
|
public ValidateManagePwd(string managePwd)
|
|
{
|
|
InitializeComponent();
|
|
this.managePwd = managePwd;
|
|
}
|
|
|
|
private void BButton_Click(object sender, System.Windows.RoutedEventArgs e)
|
|
{
|
|
if (txtManagePwd.PasswordStr == managePwd)
|
|
{
|
|
DialogResult = true;
|
|
this.Close();
|
|
}
|
|
else
|
|
MessageBox.Show("管理密码错误", "提示");
|
|
}
|
|
}
|
|
}
|
|
|