Beispiel #1
0
        /// <summary>
        /// Creates the ObjectThicknessSequence in the underlying collection. Type 1.
        /// </summary>
        public ObjectThicknessSequenceItem CreateObjectThicknessSequence()
        {
            var dicomAttribute = DicomAttributeProvider[DicomTags.ObjectThicknessSequence];

            if (dicomAttribute.IsNull || dicomAttribute.IsEmpty)
            {
                var dicomSequenceItem = new DicomSequenceItem();
                dicomAttribute.Values = new[] { dicomSequenceItem };
                var sequenceType = new ObjectThicknessSequenceItem(dicomSequenceItem);
                return(sequenceType);
            }
            return(new ObjectThicknessSequenceItem(((DicomSequenceItem[])dicomAttribute.Values)[0]));
        }
		/// <summary>
		/// Creates the ObjectThicknessSequence in the underlying collection. Type 1.
		/// </summary>
		public ObjectThicknessSequenceItem CreateObjectThicknessSequence()
		{
			var dicomAttribute = DicomAttributeProvider[DicomTags.ObjectThicknessSequence];
			if (dicomAttribute.IsNull || dicomAttribute.IsEmpty)
			{
				var dicomSequenceItem = new DicomSequenceItem();
				dicomAttribute.Values = new[] {dicomSequenceItem};
				var sequenceType = new ObjectThicknessSequenceItem(dicomSequenceItem);
				return sequenceType;
			}
			return new ObjectThicknessSequenceItem(((DicomSequenceItem[]) dicomAttribute.Values)[0]);
		}