private void dgvEligibleParticipants_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int index = dgvEligibleParticipants.CurrentRow.Index; Guid id = new Guid(dgvEligibleParticipants.Rows[index].Cells["PlanParticipantsEligibleId"].Value.ToString()); PlanParticipantsEligible obj = new PlanParticipantsEligible(id); frmPlanParticipantsEligible frmPlanParticipantsEligible = new frmPlanParticipantsEligible(frmMain_Parent, obj); frmPlanParticipantsEligible.FormClosed += frmPlanParticipantsEligible_FormClosed; }
private void btnNewEligibleParticipants_Click(object sender, EventArgs e) { frmPlanParticipantsEligible frmPlanParticipantsEligible = new frmPlanParticipantsEligible(frmMain_Parent, CurrentPlan); frmPlanParticipantsEligible.FormClosed += frmPlanParticipantsEligible_FormClosed; }