private void eventsToolStripMenuItem_Click(object sender, EventArgs e) { if (this.allEventsForm == null) { this.allEventsForm = new AllEventsForm(); this.allEventsForm.MdiParent = this; this.allEventsForm.FormClosed += new FormClosedEventHandler(this.eventForm_FormClosed); this.allEventsForm.Show(); } else { this.allEventsForm.Activate(); } }
private void eventForm_FormClosed(object sender, FormClosedEventArgs e) { this.allEventsForm = null; }