private void twitterSearchWindow_FormClosed(object sender, FormClosedEventArgs e) { this.twitterSearchWindow = null; }
private void searchNewsToolStripMenuItem_Click(object sender, EventArgs e) { if (this.twitterSearchWindow == null) { this.twitterSearchWindow = new TwitterSearchWindow(); this.twitterSearchWindow.MdiParent = this; this.twitterSearchWindow.FormClosed += new FormClosedEventHandler(this.twitterSearchWindow_FormClosed); this.twitterSearchWindow.Show(); } else { this.twitterSearchWindow.Activate(); } }