//--------------------------------------------------------------- public void InitChamps(IConteneurEntitesSnmp conteneur, CTypeEntiteSnmp typeEntites) { m_panelEntites.SuspendDrawing(); m_conteneur = conteneur; m_typeEntites = typeEntites; HashSet <string> indexsOuverts = new HashSet <string>(); foreach (Control ctlr in new ArrayList(m_panelEntites.Controls)) { CPanelEditeEntiteSnmp panel = ctlr as CPanelEditeEntiteSnmp; if (panel != null && !panel.IsCollapse && panel.ElementEdite.IsValide()) { indexsOuverts.Add(panel.ElementEdite.Index); } ctlr.Visible = false; m_extModeEdition.SetModeEdition(ctlr, TypeModeEdition.Autonome); m_panelEntites.Controls.Remove(ctlr); try { ctlr.Dispose(); } catch { } } FillEntities(indexsOuverts); m_panelEntites.ResumeDrawing(); }
public void InitChamps(IConteneurEntitesSnmp conteneur, CTypeEntiteSnmp typeEntite) { m_conteneur = conteneur; m_typeEntites = typeEntite; Title = typeEntite.Libelle; if (m_panelEdition == null) { m_panelEdition = new CPanelEditeEntitesSnmp(); m_panelEdition.LockEdition = m_bLockEdition; Control = m_panelEdition; } m_panelEdition.InitChamps(m_conteneur, typeEntite); }