private void earningsWindow_FormClosed(object sender, FormClosedEventArgs e) { this.earningsWindow = null; }
private void earningsToolStripMenuItem2_Click(object sender, EventArgs e) { if (this.earningsWindow == null) { this.earningsWindow = new EarningsWindow(); this.earningsWindow.MdiParent = this; this.earningsWindow.FormClosed += new FormClosedEventHandler(this.earningsWindow_FormClosed); this.earningsWindow.Show(); } else { this.earningsWindow.Activate(); } }