Example #1
0
 private void addChildItem(IReadOnlyList <Person> childs, PersonItem parent = null)
 {
     foreach (var child in childs)
     {
         var citem = new PersonItem(child, parent);
         parent?.AddChild(citem);
         PeopleItems.Add(citem);
         addChildItem(child.Childs, citem);
     }
 }
Example #2
0
 public void AddChild(PersonItem child)
 {
     childs.Add(child);
 }