public void SignUp() { AccountForm signUpForm = new AccountForm("Sign Up", new User(string.Empty, string.Empty, string.Empty)); signUpForm.OnFormSaved = () => { Login(signUpForm["Username"], signUpForm["Password"]); }; signUpForm.Open(); }
private void EditAccount(User user) { AccountForm editAccount = new AccountForm("Edit Account", user, _loggedUser); editAccount.Open(); }
public void CreateUser() { AccountForm createAccountScreen = new AccountForm("Create Account", _loggedUser); createAccountScreen.Open(); }