private void menuItemDept_Click(object sender, EventArgs e) { if (deptForm == null || deptForm.IsDisposed) { deptForm = new DeptForm(); } ShowChildForm(deptForm); }
private void DeptForm1Form_FormClosed(object sender, FormClosedEventArgs e) { deptForm = null; }