コード例 #1
0
        /// <summary>
        /// Creates the FrameAnatomySequence in the underlying collection. Type 1.
        /// </summary>
        public FrameAnatomySequenceItem CreateFrameAnatomySequence()
        {
            var dicomAttribute = DicomAttributeProvider[DicomTags.FrameAnatomySequence];

            if (dicomAttribute.IsNull || dicomAttribute.IsEmpty)
            {
                var dicomSequenceItem = new DicomSequenceItem();
                dicomAttribute.Values = new[] { dicomSequenceItem };
                var sequenceType = new FrameAnatomySequenceItem(dicomSequenceItem);
                return(sequenceType);
            }
            return(new FrameAnatomySequenceItem(((DicomSequenceItem[])dicomAttribute.Values)[0]));
        }
コード例 #2
0
		/// <summary>
		/// Creates the FrameAnatomySequence in the underlying collection. Type 1.
		/// </summary>
		public FrameAnatomySequenceItem CreateFrameAnatomySequence()
		{
			var dicomAttribute = DicomAttributeProvider[DicomTags.FrameAnatomySequence];
			if (dicomAttribute.IsNull || dicomAttribute.IsEmpty)
			{
				var dicomSequenceItem = new DicomSequenceItem();
				dicomAttribute.Values = new[] {dicomSequenceItem};
				var sequenceType = new FrameAnatomySequenceItem(dicomSequenceItem);
				return sequenceType;
			}
			return new FrameAnatomySequenceItem(((DicomSequenceItem[]) dicomAttribute.Values)[0]);
		}