private void btnEdit_Click(object sender, EventArgs e) { ClubMember c = new ClubMember(gridMembers.SelectedRows[0].Cells[0].Value.ToString()); AddEditClubMemberForm child = new AddEditClubMemberForm(c); child.MdiParent = this.MdiParent; child.Show(); }
private void btnNew_Click(object sender, EventArgs e) { AddEditClubMemberForm child = new AddEditClubMemberForm(true); child.MdiParent = this.MdiParent; child.Show(); }
// Opens form to add and edit club members private void menuAddEditMembers_Click(object sender, EventArgs e) { AddEditClubMemberForm child = new AddEditClubMemberForm(); child.MdiParent = this; child.Show(); }
private void btnDetails_Click(object sender, EventArgs e) { String username = membersDataGrid.SelectedRows[0].Cells[0].Value.ToString(); AddEditClubMemberForm child = new AddEditClubMemberForm(username); child.MdiParent = this.MdiParent; child.Show(); }