예제 #1
0
        //------------------------------------------------------------------------------
        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;
            }
        }
예제 #2
0
 //------------------------------------------------------------------------------
 public CDataPlanning(Type typeElement, IElementDataDeTableauPlanning element)
 {
     m_typeElement = typeElement;
     m_element     = element;
 }