Exemple #1
0
 private void RectorAdd_Event(Rector rector)
 {
     dbl.LogIn(rector.Account.Login, rector.Account.Password);
     dbl.FindLoggedUser();
     ChangeMenu();
     GridsFrame.Navigate(null);
 }
Exemple #2
0
 private void Login()
 {
     if (dbl.LogIn(LoginBox.Text, PasswordBox.Password))
     {
         App.Current.MainWindow.Show();
         this.Close();
     }
     else
     {
         PasswordBox.Clear();
         LogInError.Visibility = Visibility.Visible;
     }
 }