private void BtnSubmit_Click(object sender, RoutedEventArgs e) { if (PBKDF2.ValidatePassword(PswdAdmin.Password, AppState.AdminPassword)) { _admin = true; ClosePage(); } else { AppState.DisplayNotification("Invalid login.", "Time Clock"); PswdAdmin.Focus(); } }
public AdminLoginPage() { InitializeComponent(); PswdAdmin.Focus(); }