//------------------------------------------------------------------------- private void CFormEditionTypeEntiteOrganisationnelles_Load(object sender, System.EventArgs e) { if (m_listeControlesFormulairesParTypes.Count == 0) { m_panelFormulairesParEos.SuspendDrawing(); foreach (CInfoClasseDynamique info in DynamicClassAttribute.GetAllDynamicClassHeritant(typeof(IElementAEO))) { if (info.Classe.IsInterface) { continue; } CControleSelectFormulaireParType ctrl = new CControleSelectFormulaireParType(); m_panelFormulairesParEos.Controls.Add(ctrl); ctrl.Dock = DockStyle.Top; ctrl.SendToBack(); ctrl.SetTypeAssocie(info.Classe); m_gestionnaireModeEdition.SetModeEdition(ctrl, TypeModeEdition.EnableSurEdition); ctrl.LockEdition = !m_gestionnaireModeEdition.ModeEdition; m_listeControlesFormulairesParTypes.Add(ctrl); } m_panelFormulairesParEos.ResumeDrawing(); } ListViewAutoFilledColumn colonneNomEntite = new ListViewAutoFilledColumn(); colonneNomEntite.Text = I.T("Entity Type Name|10094"); colonneNomEntite.Width = 250; colonneNomEntite.Field = "Nom"; m_lstViewExceptionsPourType.Colonnes.Add(colonneNomEntite); m_cleRegistreListViewExceptionsPourType = "Preferences\\Panel_Listes\\" + this.GetType().Name + "_" + m_lstViewExceptionsPourType.Name; m_lstViewExceptionsPourType.ReadFromRegistre(new CSc2iWin32DataNavigationRegistre().GetKey(m_cleRegistreListViewExceptionsPourType, true)); }
public static void ReadListViewAutoFilled(ListViewAutoFilled liste, string strName) { liste.ReadFromRegistre(new CSc2iWin32DataNavigationRegistre().GetKey(GetNomForRegistre(liste, strName), false)); }