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