public void IncorrectPreviousPasswordEntered() { PreviousPassword.Clear(); PasswordBox1.Clear(); PasswordBox2.Clear(); IncorrectPasswordLabel.Visible = true; }
public void ClearTextBoxes() { PreviousPassword.Clear(); PasswordBox1.Clear(); PasswordBox2.Clear(); IncorrectPasswordLabel.Visible = false; }
public SafeViewerCryptoKeys() { InitializeComponent(); ViewModel = new SafeViewerCryptoKeysViewModel(); ViewModel.ClearPassword = () => { this.Dispatcher.Invoke(() => PasswordBox1.Clear()); }; DataContext = ViewModel; }
private void ConfirmButton_Click(object sender, EventArgs e) { if (PasswordBox1.Text == PasswordBox2.Text) { Client.WriteToStream(_stream, "%change%"); Client.WriteToStream(_stream, PasswordBox1.Text); } else { MessageBox.Show(" Passwords don't match !"); } PasswordBox1.Clear(); PasswordBox2.Clear(); }
private void SignInMenu_Click(object sender, RoutedEventArgs e) { if (TextBox1.Text == "admin" && PasswordBox1.Password == "admin") { TextBox1.Clear(); PasswordBox1.Clear(); MainMenu.Visibility = Visibility.Hidden; ReadOrCreatMenu.Visibility = Visibility.Visible; } else { MessageBox.Show("Вы вошли как обычный пользователь." + "\n" + "Вам ограничены функции редактирования базы данных библиотеки.", "Авторизация", MessageBoxButton.OK, MessageBoxImage.Exclamation); TextBox1.Clear(); PasswordBox1.Clear(); MainMenu.Visibility = Visibility.Hidden; DataBaseMenuUser.Visibility = Visibility.Visible; } }
public void ClearTextBoxes() { UserNameChoice.Clear(); PasswordBox1.Clear(); PasswordBox2.Clear(); }