Exemplo n.º 1
0
 bool TryGetParentRelations(Item item, out IList <Relation> relations, Relation_Store_ParentRelation stoPRels, Relation_StoreX_ParentRelation stoXPRels)
 {
     if (item.GetOwner().IsExternal)
     {
         if (stoXPRels.TryGetChildren(item, out IList <Relation> txRelations))
         {
             relations = new List <Relation>(txRelations);
             return(true);
         }
         relations = null;
         return(false);
     }
     return(stoPRels.TryGetChildren(item.GetOwner(), out relations));
 }
 protected override IList <Relation> GetChildItems() => StoreX_ChildRelation.TryGetChildren(Item.GetOwner(), out IList <Relation> list) ? list : new Relation[0];
 protected override int GetTotalCount() => StoreX_ChildRelation.ChildCount(Item.GetOwner());