private void lblAddPersonne_Click(object sender, EventArgs e) { PersonneFrm frm = new PersonneFrm(); frm.setFormPrincipal(principal); frm.Icon = principal.Icon; frm.ShowDialog(); }
private void mnPersonne_Click(object sender, EventArgs e) { try { clsDoTraitement.SetProcessWorkingSetSize(Process.GetCurrentProcess().Handle, -1, -1); } catch { } PersonneFrm frm = new PersonneFrm(); frm.MdiParent = this; frm.setFormPrincipal(this); frm.Icon = this.Icon; frm.Show(); }