private void theStockMarketToolStripMenuItem_Click(object sender, EventArgs e) { if (this.stockMarketWindow == null) { this.stockMarketWindow = new StockMarketWindow(); this.stockMarketWindow.MdiParent = this; this.stockMarketWindow.FormClosed += new FormClosedEventHandler(this.stockMarketWindow_FormClosed); this.stockMarketWindow.Show(); } else { this.stockMarketWindow.Activate(); } }
private void stockMarketWindow_FormClosed(object sender, FormClosedEventArgs e) { this.stockMarketWindow = null; }