private void searchFromCompaniesToolStripMenuItem_Click(object sender, EventArgs e) { if (scForm == null) { scForm = new SearchCompanies { MdiParent = this }; scForm.FormClosed += new FormClosedEventHandler(scForm_FormClosed); scForm.Show(); } else { scForm.Activate(); } }
private void scForm_FormClosed(object sender, FormClosedEventArgs e) { scForm = null; }