/// <summary> /// Constructor that allows a custom binding to be supplied. /// </summary> public DisplaySetTree(ObservableList <IImageSet> imageSets, DisplaySetTreeItemBingding binding) { _bingding = binding; _tree = new Tree <DisplaySetTreeGroupItem>(binding); _imageSets = new ObservableList <IImageSet>(); Initialize(imageSets); }
public void Dispose() { _tree = null; _imageSets.Clear(); _imageSets = null; _bingding = null; }