コード例 #1
0
 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();
     }
 }
コード例 #2
0
 public AdminLoginPage()
 {
     InitializeComponent();
     PswdAdmin.Focus();
 }