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