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); }
public void GoMainPage() { Type type = typeof(MainPage); Navigate.ActivateFrameNavigation(typeof(MainPage)); }
public void GoReceiptPage() { Navigate.ActivateFrameNavigation(typeof(ReceiptPage)); }
public void GoBookingPage() { Navigate.ActivateFrameNavigation(typeof(BookingPage)); }
public void GoLoginView() { Type type = typeof(LoginView); Navigate.ActivateFrameNavigation(typeof(LoginView)); }