private void marketsWindow_FormClosed(object sender, FormClosedEventArgs e) { this.marketsWindow = null; }
private void marketsToolStripMenuItem1_Click(object sender, EventArgs e) { if (this.marketsWindow == null) { this.marketsWindow = new MarketsWindow(); this.marketsWindow.MdiParent = this; this.marketsWindow.FormClosed += new FormClosedEventHandler(this.marketsWindow_FormClosed); this.marketsWindow.Show(); } else { this.marketsWindow.Activate(); } }