private void eventsDeleteAnEventToolStripMenuItem_Click(object sender, EventArgs e) { if (this.deleteEventForm == null) { this.deleteEventForm = new DeleteEventForm(); this.deleteEventForm.MdiParent = this; this.deleteEventForm.FormClosed += new FormClosedEventHandler(this.deleteEventForm_FormClosed); this.deleteEventForm.Show(); } else { this.deleteEventForm.Activate(); } }
private void deleteEventForm_FormClosed(object sender, FormClosedEventArgs e) { this.deleteEventForm = null; }