private void BtnClear_Click(object sender, RoutedEventArgs e) { TbInputPassword.Clear(); LblPasswordResult.Text = "-"; LblPasswordHashResult.Text = "-"; LblSaltHashResult.Text = "-"; }
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(); } }