private void newUserToolStripButton_Click(object sender, System.EventArgs e) { this.tabControl.SelectedTab = this.usersTabPage; CreateEditUserForm form = new CreateEditUserForm(); form.ShowDialog(this); }
private void userBindingNavigatorEditItem_Click(object sender, System.EventArgs e) { User userToEdit = (User)usersBindingSource.Current; userToEdit.ConfirmPassword = userToEdit.Password; CreateEditUserForm form = new CreateEditUserForm(userToEdit, true /*editMode*/); form.ShowDialog(this); }
private void userBindingNavigatorAddNewItem_Click(object sender, System.EventArgs e) { CreateEditUserForm form = new CreateEditUserForm(); form.ShowDialog(this); }