private void createEmployeeRecordToolStripMenuItem_Click(object sender, EventArgs e) { if (objAddEmpDtlsForm == null) { objAddEmpDtlsForm = new AddEmployeeDtls(); objAddEmpDtlsForm.MdiParent = this; objAddEmpDtlsForm.FormClosed += ObjAddEmpDtlsForm_FormClosed; objAddEmpDtlsForm.Show(); } else { objAddEmpDtlsForm.Activate(); } }
private void ObjAddEmpDtlsForm_FormClosed(object sender, FormClosedEventArgs e) { objAddEmpDtlsForm = null; //throw new NotImplementedException(); }