Beispiel #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);
        }
Beispiel #2
0
 public void UpdateGroupData(ItemGroup group)
 {
     this.PartNumber  = group.PartNumber;
     this.Description = group.Description;
     this.ParentId    = group.ParentId;
 }
Beispiel #3
0
 public void SetParent(ItemGroup parent)
 {
     this.ParentId = parent.Id;
 }