Пример #1
0
 public DataItemInfo(DataItemDefinition definition, List <ComponentDefinition> components)
 {
     this.Id       = definition.Id;
     this.Type     = definition.Type;
     this.ParentId = definition.ParentId;
     this.SubType  = definition.SubType;
     this.Parents  = DataItemInfo.GetParents(definition.ParentId, components);
 }
Пример #2
0
        public DataItemInfo(DataItemDefinition definition, List <ComponentDefinition> components)
        {
            Id       = definition.Id;
            Type     = definition.Type;
            ParentId = definition.ParentId;
            SubType  = definition.SubType;
            Parents  = GetParents(definition.ParentId, components);

            IsMultiplePath = components.FindAll(o => o.Type == "Path").Count > 1 && Parents.Exists(o => o.Type == "Path");
        }