예제 #1
0
 public void AddChildDiscs(IEnumerable <Disc> discs)
 {
     ChildDiscs = ChildNames.Select(x => discs.First(y => y.Name == x)).ToList();
     ChildDiscs.ForEach(x => x.Parent = this);
 }
예제 #2
0
 public void LinkChildren(List <Plate> list)
 {
     Children = ChildNames.Select(cName => list.First(x => x.Name == cName)).ToList();
     Children.ForEach(x => x.Parent = this);
 }