Пример #1
0
 internal SwComponent(IComponent2 comp, ISwAssembly parentAssembly) : base(comp)
 {
     m_ParentAssembly = parentAssembly;
     Component        = comp;
     Children         = new SwChildComponentsCollection(parentAssembly, comp);
     Features         = new ComponentFeatureRepository(parentAssembly, comp);
     Bodies           = new SwComponentBodyCollection(comp, parentAssembly);
 }
Пример #2
0
        internal SwComponent(IComponent2 comp, SwAssembly parentAssembly) : base(comp)
        {
            m_ParentAssembly = parentAssembly;
            Component        = comp;
            Children         = new SwChildComponentsCollection(parentAssembly, comp);
            Features         = new ComponentFeatureRepository(parentAssembly, comp);
            Bodies           = new SwComponentBodyCollection(comp, parentAssembly);

            m_FilePathResolver = m_ParentAssembly.App.Services.GetService <IFilePathResolver>();
        }