private void dgvRKs_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int index = dgvRKs.CurrentRow.Index; Guid planRkId = new Guid(dgvRKs.Rows[index].Cells["PlanRecordKeeperId"].Value.ToString()); PlanRecordKeeper planRK = new PlanRecordKeeper(planRkId); frmPlanRecordKeeper frmPlanRecordKeeper = new frmPlanRecordKeeper(frmMain_Parent, planRK); frmPlanRecordKeeper.FormClosed += frmPlanRecordKeeper_FormClosed; }
private void btnNewRK_Click(object sender, EventArgs e) { frmPlanRecordKeeper frmPlanRecordKeeper = new frmPlanRecordKeeper(frmMain_Parent, CurrentPlan); frmPlanRecordKeeper.FormClosed += frmPlanRecordKeeper_FormClosed; }