private void الموردToolStripMenuItem_Click(object sender, EventArgs e) { if (supplier == null) { supplier = new supplier(); supplier.MdiParent = this; supplier.FormClosed += new FormClosedEventHandler(supplier_FormClosed); supplier.Show(); } else { category.Activate(); } }
void supplier_FormClosed(object sender, FormClosedEventArgs e) { //throw new NotImplementedException(); supplier = null; }