private void economyWindow_FormClosed(object sender, FormClosedEventArgs e) { this.economyWindow = null; }
private void economyToolStripMenuItem1_Click(object sender, EventArgs e) { if (this.economyWindow == null) { this.economyWindow = new EconomyWindow(); this.economyWindow.MdiParent = this; this.economyWindow.FormClosed += new FormClosedEventHandler(this.economyWindow_FormClosed); this.economyWindow.Show(); } else { this.economyWindow.Activate(); } }