Exemple #1
0
 private void OnRemoveChildComplete(LazinatorGeneralTree <T> child)
 {
     InitializeLocationsIfNecessary();
     Locations.Remove(child.Item);
     foreach (var grandchild in child.GetChildren())
     {
         OnRemoveChildComplete(grandchild);
     }
 }
Exemple #2
0
        private void OnAddChildComplete(LazinatorGeneralTree <T> child)
        {
            InitializeLocationsIfNecessary();
            var location = ConvertToLazinatorList(child.GetLocationInTree());

            Locations[child.Item] = location;
            foreach (var grandchild in child.GetChildren())
            {
                OnAddChildComplete(grandchild);
            }
        }