private void lesEntréesToolStripMenuItem_Click(object sender, EventArgs e) { if (sgl == null || sgl.IsDisposed) { sgl = new Extract_SGL_File(); sgl.idSoc = idSociete; sgl.codeSoc = CodeSoc; sgl.NomSoc = NomSoc; sgl.MdiParent = this; sgl.Show(); } else { sgl.WindowState = FormWindowState.Maximized; sgl.Activate(); } }