예제 #1
0
 private void LoginButton_Click(object sender, RoutedEventArgs e)
 {
     if (registration.LogIn())
     {
         Frame.Navigate(typeof(MenuBar));
     }
     else if (registration.LogInUser())
     {
         Frame.Navigate(typeof(HamburgerMenu));
     }
     else
     {
         var message = new MessageDialog("Your username or password is incorrect \nPlease Try again 😊 ",
                                         "Fail Login");
         message.ShowAsync();
     }
 }