示例#1
0
 private void BtnClear_Click(object sender, RoutedEventArgs e)
 {
     TbInputPassword.Clear();
     LblPasswordResult.Text     = "-";
     LblPasswordHashResult.Text = "-";
     LblSaltHashResult.Text     = "-";
 }
示例#2
0
 private void BtnEncode_Click(object sender, RoutedEventArgs e)
 {
     if (TbInputPassword.Text != string.Empty)
     {
         Password password = EncodePassword();
         ShowPassword(password);
         TbInputPassword.Clear();
     }
     else
     {
         ValidationWindow validationWindow = new ValidationWindow();
         validationWindow.ShowDialog();
     }
 }