public void SignUp() { LoginSingupPresenter SignupPresenter = new LoginSingupPresenter(LoginSignupView); if (SignupPresenter.SignUp() == true) { MessageBox.Show("Successfully Signed Up"); } }
public void Login() { LoginSingupPresenter LoginPresenter = new LoginSingupPresenter(LoginSignupView); if (LoginSignupView.LoginSingupConnectionString == null) { MessageBox.Show("Please Setup Connection First"); return; } if (LoginPresenter.Login() == true) { MainPageView.isLoggedIn = true; MyAccountPageView.MyAccountPageAccountID = LoginSignupView.LoginSingupAccountID; MyAccountPageView.MyAccountPageConnectionString = LoginSignupView.LoginSingupConnectionString; LoadAccountInfo(); MessageBox.Show("Successfully Signed Logged In"); RemoveTabPage(); } else { MessageBox.Show("Log in Failed Account Not Found"); } }
public void LoadAccountTypes() { LoginSingupPresenter presenter = new LoginSingupPresenter(LoginSignupView); presenter.LoadAccountTypes(); }