/// <summary>
		/// Creates the RequestAttributesSequence in the underlying collection. Type 3.
		/// </summary>
		public IRequestAttributesMacro CreateRequestAttributesSequence()
		{
			var dicomAttribute = DicomAttributeProvider[DicomTags.RequestAttributesSequence];
			if (dicomAttribute.IsNull || dicomAttribute.IsEmpty)
			{
				var dicomSequenceItem = new DicomSequenceItem();
				dicomAttribute.Values = new[] {dicomSequenceItem};
				var sequenceType = new RequestAttributesMacro(dicomSequenceItem);
				sequenceType.InitializeAttributes();
				return sequenceType;
			}
			return new RequestAttributesMacro(((DicomSequenceItem[]) dicomAttribute.Values)[0]);
		}
Esempio n. 2
0
		/// <summary>
		/// Creates a single instance of a RequestAttributesSequence item. Does not modify the RequestAttributesSequence in the underlying collection.
		/// </summary>
		public IRequestAttributesMacro CreateRequestAttributesSequence()
		{
			IRequestAttributesMacro iodBase = new RequestAttributesMacro(new DicomSequenceItem());
			iodBase.InitializeAttributes();
			return iodBase;
		}