private void المساحيقToolStripMenuItem_Click(object sender, EventArgs e) { if (det == null) { det = new detergentForm(); det.MdiParent = this; det.FormClosed += new FormClosedEventHandler(det_FormClosed); det.Show(); } else { det.Activate(); } }
void det_FormClosed(object sender, FormClosedEventArgs e) { //throw new NotImplementedException(); det = null; }