private void earningsWsjWindow_FormClosed(object sender, FormClosedEventArgs e) { this.earningsWsjWindow = null; }
private void earningsToolStripMenuItem3_Click(object sender, EventArgs e) { if (this.earningsWsjWindow == null) { this.earningsWsjWindow = new EarningsWsjWindow(); this.earningsWsjWindow.MdiParent = this; this.earningsWsjWindow.FormClosed += new FormClosedEventHandler(this.earningsWsjWindow_FormClosed); this.earningsWsjWindow.Show(); } else { this.earningsWsjWindow.Activate(); } }