Exemple #1
0
            public MprDisplaySetMemento(MprDisplaySet mprDisplaySet, object displaySetMemento)
            {
                if (mprDisplaySet.ImageBox != null)
                {
                    this.SliceIndex = mprDisplaySet.ImageBox.TopLeftPresentationImageIndex;
                }

                if (mprDisplaySet.SliceSet is IMprStandardSliceSet)
                {
                    this.SlicerParams = ((IMprStandardSliceSet)mprDisplaySet.SliceSet).SlicerParams;
                }

                this.DisplaySetMemento = displaySetMemento;
            }
Exemple #2
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);
            }
Exemple #3
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;
			}
Exemple #4
0
 protected MprDisplaySet(MprDisplaySet source, ICloningContext context)
 {
     context.CloneFields(source, this);
 }
Exemple #5
0
		protected MprDisplaySet(MprDisplaySet source, ICloningContext context)
		{
			context.CloneFields(source, this);
		}
Exemple #6
0
			public MprDisplaySetMemento(MprDisplaySet mprDisplaySet, object displaySetMemento)
			{
				if (mprDisplaySet.ImageBox != null)
					this.SliceIndex = mprDisplaySet.ImageBox.TopLeftPresentationImageIndex;

				if (mprDisplaySet.SliceSet is IMprStandardSliceSet)
					this.SlicerParams = ((IMprStandardSliceSet) mprDisplaySet.SliceSet).SlicerParams;

				this.DisplaySetMemento = displaySetMemento;
			}