private void bChantier_Click(object sender, EventArgs e) { if (svr == null || svr.IsDisposed) { svr = new SVR(); svr.MdiParent = this; svr.idSoc = idSociete; svr.codeSoc = CodeSoc; svr.NomSoc = NomSoc; svr.Show(); } else { lst.WindowState = FormWindowState.Maximized; lst.Activate(); } }
private void summaryVarienceReportToolStripMenuItem_Click(object sender, EventArgs e) { if (svr == null || svr.IsDisposed) { svr = new SVR(); svr.MdiParent = this; svr.idSoc = idSociete; svr.codeSoc = CodeSoc; svr.NomSoc = NomSoc; svr.Show(); } else { lst.WindowState = FormWindowState.Maximized; lst.Activate(); } }