private void addDepartmentToolStripMenuItem_Click(object sender, EventArgs e) { if (objAddDeptDtlsForm == null) { objAddDeptDtlsForm = new AddDeptDtls(); objAddDeptDtlsForm.MdiParent = this; objAddDeptDtlsForm.FormClosed += ObjAddDeptDtlsForm_FormClosed; objAddDeptDtlsForm.Show(); } else { objAddDeptDtlsForm.Activate(); } }
private void ObjAddDeptDtlsForm_FormClosed(object sender, FormClosedEventArgs e) { objAddDeptDtlsForm = null; //throw new NotImplementedException(); }