private void companyListToolStripMenuItem1_Click(object sender, EventArgs e) { if (clForm == null) { clForm = new CompanyList { MdiParent = this }; clForm.FormClosed += new FormClosedEventHandler(clForm_FormClosed); clForm.Show(); } else { clForm.Activate(); } }
private void clForm_FormClosed(object sender, FormClosedEventArgs e) { clForm = null; }