Example #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ManagerInfo info = ManagerInfo.Current;

            string password = this.tBxPassword.Password;

            if (!SecureStringHelper.IsPasswordMatch(password, info.LockPasswordHash))
            {
                ShowError("密码错误");
                return;
            }

            this.parentWindow.Show();

            this.passwordConfirmed = true;
            this.Close();
        }