public void LogIn(string email, string password)
 {
     if (VerifyAccount.VerifyExistingAccount(email, password, AccountsList) != null)
     {
         Session.LoggedInUser = VerifyAccount.VerifyExistingAccount(email, password, AccountsList);
         MessageBox.Success("You have logged in successfully.");
         Navigate.ActivateFrameNavigation(typeof(MainPage));
     }
 }
 public void LogIn(string email, string password)
 {
     if (VerifyAccount.VerifyExistingAccount(email, password, AccountsList) != null)
     {
         // MessageBox.Success("You have logged in successfully.");
         Navigate.ActivateFrameNavigation(typeof(MainPage));
     }
     else
     {
         //  MessageBox.Fail("Login failed.");
     }
 }
        public void GoCreateAccountViewModel()
        {
            Type type = typeof(CreateAccountView);

            Navigate.ActivateFrameNavigation(type);
        }
Beispiel #4
0
        public void GoMainPage()
        {
            Type type = typeof(MainPage);

            Navigate.ActivateFrameNavigation(typeof(MainPage));
        }
Beispiel #5
0
 public void GoReceiptPage()
 {
     Navigate.ActivateFrameNavigation(typeof(ReceiptPage));
 }
 public void GoBookingPage()
 {
     Navigate.ActivateFrameNavigation(typeof(BookingPage));
 }
Beispiel #7
0
        public void GoLoginView()
        {
            Type type = typeof(LoginView);

            Navigate.ActivateFrameNavigation(typeof(LoginView));
        }