private void dgvFees_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int index = dgvFees.CurrentRow.Index; Guid planRkFeeId = new Guid(dgvFees.Rows[index].Cells["PlanRecordKeeperProductFeeId"].Value.ToString()); PlanRecordKeeperProductFee planRkPdFee = new PlanRecordKeeperProductFee(planRkFeeId); frmPlanRecordKeeperProductFee frmPlanRecordKeeperProductFee = new frmPlanRecordKeeperProductFee(frmMain_Parent, planRkPdFee); frmPlanRecordKeeperProductFee.FormClosed += frmPlanRecordKeeperProductFee_FormClosed; }
private void btnNewFee_Click(object sender, EventArgs e) { frmPlanRecordKeeperProductFee frmPlanRecordKeeperProductFee = new frmPlanRecordKeeperProductFee(frmMain_Parent, CurrentPlanRecordKeeperProduct); frmPlanRecordKeeperProductFee.FormClosed += frmPlanRecordKeeperProductFee_FormClosed; }