public new void Remove(T item) { base.Remove(item); ITreeSet set = item as ITreeSet; ArrayTree <X> setX = set.GetTree <X>(); ArrayTree <Y> setY = set.GetTree <Y>(); base.RemoveSource(setX); base.RemoveSource(setY); }
public new void Insert(int index, T item) { base.Insert(index, item); ITreeSet set = item as ITreeSet; ArrayTree <X> setX = set.GetTree <X>(); ArrayTree <Y> setY = set.GetTree <Y>(); base.InsertSource(index, setX); base.InsertSource(index, setY); }
public new void Add(T item) { base.Add(item); ITreeSet set = item as ITreeSet; ArrayTree <X> setX = set.GetTree <X>(); ArrayTree <Y> setY = set.GetTree <Y>(); base.AddSource(setX); base.AddSource(setY); }
public void RemoveSource(ArrayTree <T> source) { _sources.Remove(source); _sourceItemCount -= source.Count; source.CountChanged += CountChangedHandlerFunction; if (CountChanged != null) { CountChanged(-source.Count); } }
public void InsertSource(int index, ArrayTree <T> source) { _sources.Insert(index, source); _sourceItemCount += source.Count; source.CountChanged += CountChangedHandlerFunction; if (CountChanged != null) { CountChanged(source.Count); } }
public void AddSource(ArrayTree <T> source) { _sources.Add(source); _sourceItemCount += source.Count; source.CountChanged += CountChangedHandlerFunction; if (CountChanged != null) { CountChanged(source.Count); } }
public void Dispose() { _set = null; }
public NestedListEnumerator(ArrayTree <T> set) { _set = set; _currentIndex = -1; }
protected void InsertSource <U>(int index, ArrayTree <U> set) { ArrayTree <U> tree = GetTree <U>(); tree.InsertSource(index, set); }
protected void RemoveSource <U>(ArrayTree <U> set) { ArrayTree <U> tree = GetTree <U>(); tree.RemoveSource(set); }
protected void AddSource <U>(ArrayTree <U> set) { ArrayTree <U> tree = GetTree <U>(); tree.AddSource(set); }