private void dgvFees_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int index = dgvFees.CurrentRow.Index; Guid planRkFeeId = new Guid(dgvFees.Rows[index].Cells["PlanRecordKeeperFeeId"].Value.ToString()); PlanRecordKeeperFee planRkFee = new PlanRecordKeeperFee(planRkFeeId); frmPlanRecordKeeperFee frmPlanRecordKeeperFee = new frmPlanRecordKeeperFee(frmMain_Parent, planRkFee); frmPlanRecordKeeperFee.FormClosed += frmPlanRecordKeeperFee_FormClosed; }
private void btnNewFee_Click(object sender, EventArgs e) { frmPlanRecordKeeperFee frmPlanRecordKeeperFee = new frmPlanRecordKeeperFee(frmMain_Parent, CurrentPlanRecordKeeper); frmPlanRecordKeeperFee.FormClosed += frmPlanRecordKeeperFee_FormClosed; }