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 CreateAccount(string fullname, string email, string password) { if (VerifyAccount.VerifyNewAccount(fullname, email, password, AccountsList)) { Account account = new Account(fullname, email, password, admin: false) { Fullname = fullname, Email = email, Password = password }; AddAccount(account); } }
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."); } }