private void clientToolStripMenuItem_Click(object sender, EventArgs e) { if (commercial == null) { commercial = new ABI.UI.frmListClt(); commercial.FormClosing += new FormClosingEventHandler(this.commercial_Closing); commercial.MdiParent = this; commercial.Dock = DockStyle.Fill; commercial.Show(); } else { commercial.Activate(); } }
private void commercial_Closing(object sender, FormClosingEventArgs e) { commercial = null; }