31 lines
754 B
31 lines
754 B
3 years ago
|
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("管理密码错误", "提示");
|
||
|
}
|
||
|
}
|
||
|
}
|