private void btnEdit_Click(object sender, EventArgs e) { // Goes to the profile edit page Hide(); frmProfileEdit profileEdit = new frmProfileEdit(user, popout); profileEdit.ShowDialog(); }
private void btnCreateAccount_Click(object sender, EventArgs e) { // Validates the new user info if (UserManager.CreateUser(txtUsername.Text, txtPassword.Text)) { // Go to the profile edit page to setup a new user Hide(); frmProfileEdit profileEdit = new frmProfileEdit(UserManager.user); profileEdit.ShowDialog(); } }