//------------------------------------------------------------------------------ public CDataPlanning(Type typeElement, int nIdElement, CContexteDonnee ctx) { m_typeElement = typeElement; try { CObjetDonneeAIdNumerique element = (CObjetDonneeAIdNumeriqueAuto)Activator.CreateInstance(typeElement, new object[] { ctx }); if (element.ReadIfExists(nIdElement)) { m_element = (IElementDataDeTableauPlanning)element; } else { m_element = null; } } catch { m_element = null; } }
//------------------------------------------------------------------------------ public CDataPlanning(Type typeElement, IElementDataDeTableauPlanning element) { m_typeElement = typeElement; m_element = element; }