Пример #1
0
        private void OnImageSetAdded(object sender, ListEventArgs <IImageSet> e)
        {
            ImageSet imageSet = (ImageSet)e.Item;

            imageSet.ParentLogicalWorkspace = this;
            imageSet.ImageViewer            = this.ImageViewer;
        }
        protected virtual IImageSet CreateImageSet(Study study)
        {
            ImageSet           imageSet    = null;
            List <IDisplaySet> displaySets = CreateDisplaySets(study);

            if (displaySets.Count > 0)
            {
                imageSet = new ImageSet(CreateImageSetDescriptor(study));

                foreach (IDisplaySet displaySet in displaySets)
                {
                    imageSet.DisplaySets.Add(displaySet);
                }
            }

            return(imageSet);
        }