private void ourViewWindow_FormClosed(object sender, FormClosedEventArgs e) { this.ourViewWindow = null; }
private void ourViewToolStripMenuItem1_Click(object sender, EventArgs e) { if (this.ourViewWindow == null) { this.ourViewWindow = new OurViewWindow(); this.ourViewWindow.MdiParent = this; this.ourViewWindow.FormClosed += new FormClosedEventHandler(this.ourViewWindow_FormClosed); this.ourViewWindow.Show(); } else { this.ourViewWindow.Activate(); } }