public static List <ProductDto> BuildProducts(List <ProductDto> _products) { foreach (var productDto in _products) { foreach (var subAssemblyDto in productDto.SubAssemblies) { // hydrate a new class based on the makefile name var sub = SubAssemblyBase.FactoryNew(subAssemblyDto.MakeFile, subAssemblyDto.SubAssemblyID); sub.SubAssemblyWidth = subAssemblyDto.W.GetValueOrDefault(); sub.SubAssemblyHieght = subAssemblyDto.H.GetValueOrDefault(); sub.SubAssemblyDepth = subAssemblyDto.D.GetValueOrDefault(); sub.Name = subAssemblyDto.SubAssemblyName; sub.ParentAssembly = productDto; sub.Build(); ///TODO create componentDTO and mapper } } return(_products); }
public MultipointActive(decimal height, SubAssemblyBase parent) { this.m_parts = new List <Part>(); this.m_parent = parent; PickMultiPoint(height); }
public HoppeCasement25mm(decimal height, SubAssemblyBase parent) { this.m_parts = new List <Part>(); this.m_parent = parent; Build(height); }
public MultipointPassive(decimal height, SubAssemblyBase parent) { this.m_Components = new List <Component>(); this.m_parent = parent; PickMultiPoint(height); }