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);
        }
示例#4
0
        public void GoMainPage()
        {
            Type type = typeof(MainPage);

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

            Navigate.ActivateFrameNavigation(typeof(LoginView));
        }