/// /////////////////////////////////////////// public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, System.IServiceProvider provider, object value) { ISelectionneurChampCustom selectionneur = m_selectionneur; if (selectionneur == null) { selectionneur = (ISelectionneurChampCustom)Activator.CreateInstance(m_typeSelectionneur); selectionneur.TypeElementsAChamp = m_typeElementAChamps; } object retour = selectionneur.SelectChamp((CChampCustom)value); if (m_selectionneur == null && selectionneur is IDisposable) { ((IDisposable)selectionneur).Dispose(); } return(retour); }
/// /////////////////////////////////////////// public static void SetEditeur(ISelectionneurChampCustom selectionneur) { m_selectionneur = selectionneur; }