/// <summary> /// Constructor that allows a custom binding to be supplied. /// </summary> /// <param name="imageSets"></param> /// <param name="primaryStudyInstanceUid"></param> /// <param name="binding"></param> public ImageSetTree(ObservableList<IImageSet> imageSets, string primaryStudyInstanceUid, ImageSetTreeItemBinding binding) { _primaryStudyInstanceUid = primaryStudyInstanceUid; _imageSetGroups = new ImageSetGroups(imageSets); _internalTree = new ImageSetTreeGroupItem(_imageSetGroups.Root, new StudyDateComparer(), binding); UpdateInternalTreeRoot(); _internalTree.Updated += OnInternalTreeUpdated; }
/// <summary> /// Constructor that allows a custom binding to be supplied. /// </summary> /// <param name="imageSets"></param> /// <param name="primaryStudyInstanceUid"></param> /// <param name="binding"></param> public ImageSetTree(ObservableList <IImageSet> imageSets, string primaryStudyInstanceUid, ImageSetTreeItemBinding binding) { _primaryStudyInstanceUid = primaryStudyInstanceUid; _imageSetGroups = new ImageSetGroups(imageSets); _internalTree = new ImageSetTreeGroupItem(_imageSetGroups.Root, new StudyDateComparer(), binding); UpdateInternalTreeRoot(); _internalTree.Updated += OnInternalTreeUpdated; }