private void ouvrirToolStripMenuItem_Click(object sender, EventArgs e) { if (xs == null) { xs = new ouvrirQuestionnaire(this); xs.MdiParent = this; xs.FormClosed += new FormClosedEventHandler(xs_FormClosed); xs.Show(); } else { xs.Activate(); } }
private void xs_FormClosed(object sender, FormClosedEventArgs e) { xs = null; }