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); }
internal SwComponent(IComponent2 comp, SwAssembly rootAssembly) : base(comp) { m_RootAssembly = rootAssembly; Component = comp; Children = new SwChildComponentsCollection(rootAssembly, comp); m_Features = new Lazy <ISwFeatureManager>(() => new ComponentFeatureRepository(rootAssembly, comp)); Bodies = new SwComponentBodyCollection(comp, rootAssembly); m_FilePathResolver = m_RootAssembly.App.Services.GetService <IFilePathResolver>(); }
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>(); }
internal SwComponent(IComponent2 comp, SwAssembly rootAssembly, ISwApplication app) : base(comp, rootAssembly, app) { m_RootAssembly = rootAssembly; Component = comp; Children = new SwChildComponentsCollection(rootAssembly, this); m_FeaturesLazy = new Lazy <ISwFeatureManager>(() => new SwComponentFeatureManager(this, rootAssembly, app)); m_DimensionsLazy = new Lazy <ISwDimensionsCollection>(() => new SwFeatureManagerDimensionsCollection(Features)); m_MathUtils = app.Sw.IGetMathUtility(); Bodies = new SwComponentBodyCollection(comp, rootAssembly); m_FilePathResolver = ((SwApplication)OwnerApplication).Services.GetService <IFilePathResolver>(); }