private void selectedEventToolStripMenuItem_Click(object sender, EventArgs e) { if (this.selectedEventForm == null) { this.selectedEventForm = new SelectedEventForm(); this.selectedEventForm.MdiParent = this; this.selectedEventForm.FormClosed += new FormClosedEventHandler(this.selectedEventForm_FormClosed); this.selectedEventForm.Show(); } else { this.selectedEventForm.Activate(); } }
private void selectedEventForm_FormClosed(object sender, FormClosedEventArgs e) { this.selectedEventForm = null; }