예제 #1
0
 protected virtual void OnSliceSetRemoved(IMprSliceSet item)
 {
     if (item is IInternalMprSliceSet)
     {
         ((IInternalMprSliceSet)item).Parent = null;
     }
 }
예제 #2
0
 protected virtual void OnSliceSetAdded(IMprSliceSet item)
 {
     if (item is IInternalMprSliceSet)
     {
         ((IInternalMprSliceSet)item).Parent = this;
     }
 }
예제 #3
0
        public MprDisplaySet(string name, IMprSliceSet sliceSet)
            : base(name, sliceSet.Uid)
        {
            _sliceSet = sliceSet;
            _sliceSet.SliceSopsChanged += sliceSet_SliceSopsChanged;

            FillPresentationImages();
        }
예제 #4
0
		public MprDisplaySet(string name, IMprSliceSet sliceSet)
			: base(name, sliceSet.Uid)
		{
			_sliceSet = sliceSet;
			_sliceSet.SliceSopsChanged += sliceSet_SliceSopsChanged;

			FillPresentationImages();
		}
예제 #5
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _sliceSet.SliceSopsChanged -= sliceSet_SliceSopsChanged;
         _sliceSet = null;
     }
     base.Dispose(disposing);
 }
예제 #6
0
		protected override void Dispose(bool disposing)
		{
			if (disposing)
			{
				_sliceSet.SliceSopsChanged -= sliceSet_SliceSopsChanged;
				_sliceSet = null;
			}
			base.Dispose(disposing);
		}
예제 #7
0
        /// <summary>
        /// Finds the ImageBox displaying the specified slice set
        /// </summary>
        protected static IImageBox FindImageBox(IMprSliceSet sliceSet, MprViewerComponent viewer)
        {
            if (sliceSet == null || viewer == null)
            {
                return(null);
            }

            foreach (IImageBox imageBox in viewer.PhysicalWorkspace.ImageBoxes)
            {
                if (imageBox.DisplaySet != null && imageBox.DisplaySet.Uid == sliceSet.Uid)
                {
                    return(imageBox);
                }
            }
            return(null);
        }
예제 #8
0
            protected virtual IDisplaySet CreateDisplaySet(int number, IMprSliceSet sliceSet)
            {
                string name;

                if (sliceSet is IMprStandardSliceSet && ((IMprStandardSliceSet)sliceSet).IsReadOnly)
                {
                    name = string.Format(SR.FormatMprDisplaySetName, sliceSet.Description);
                }
                else
                {
                    name = string.Format(SR.FormatMprDisplaySetName, number - 1);
                }

                DisplaySet displaySet = new MprDisplaySet(name, sliceSet);

                displaySet.Description = name;
                displaySet.Number      = number;
                return(displaySet);
            }
예제 #9
0
			protected virtual IDisplaySet CreateDisplaySet(int number, IMprSliceSet sliceSet)
			{
				string name;
				if (sliceSet is IMprStandardSliceSet && ((IMprStandardSliceSet)sliceSet).IsReadOnly)
					name = string.Format(SR.FormatMprDisplaySetName, sliceSet.Description);
				else
					name = string.Format(SR.FormatMprDisplaySetName, number - 1);

				DisplaySet displaySet = new MprDisplaySet(name, sliceSet);
				displaySet.Description = name;
				displaySet.Number = number;
				return displaySet;
			}
예제 #10
0
파일: MprVolume.cs 프로젝트: nhannd/Xian
		protected virtual void OnSliceSetAdded(IMprSliceSet item)
		{
			if (item is IInternalMprSliceSet)
				((IInternalMprSliceSet)item).Parent = this;
		}
예제 #11
0
파일: MprVolume.cs 프로젝트: nhannd/Xian
		protected virtual void OnSliceSetRemoved(IMprSliceSet item)
		{
			if (item is IInternalMprSliceSet)
				((IInternalMprSliceSet) item).Parent = null;
		}