Ejemplo n.º 1
0
        public bool IsChild(ItemGroup item)
        {
            var isChild = false;

            foreach (var child in this.Child.ToList())
            {
                if (child.Id == item.Id)
                {
                    return(true);
                }
                else
                {
                    isChild = child.IsChild(item);
                }
            }
            ;
            return(isChild);
        }
Ejemplo n.º 2
0
 public void UpdateGroupData(ItemGroup group)
 {
     this.PartNumber  = group.PartNumber;
     this.Description = group.Description;
     this.ParentId    = group.ParentId;
 }
Ejemplo n.º 3
0
 public void SetParent(ItemGroup parent)
 {
     this.ParentId = parent.Id;
 }