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