Exemplo n.º 1
0
        /// <summary>
        /// Creates the MrSpectroscopyFrameTypeSequence in the underlying collection. Type 1.
        /// </summary>
        public MrSpectroscopyFrameTypeSequenceItem CreateMrSpectroscopyFrameTypeSequence()
        {
            var dicomAttribute = DicomAttributeProvider[DicomTags.MrSpectroscopyFrameTypeSequence];

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