Пример #1
0
 static DcmDictionary()
 {
     lock (Lock) {
         UnknownTag = new DcmDictionaryEntry("xxxx", "xxxx", "Unknown", String.Empty, new DicomVR[] { DicomVR.UN }, "1-n", false);
         PrivateTag = new DcmDictionaryEntry("xxxx", "xxxx", "Private Tag", String.Empty, new DicomVR[] { DicomVR.UN }, "1-n", false);
     }
 }
Пример #2
0
		private void DisplayEntry(DcmDictionaryEntry entry) {
			if (entry == null) {
				lblElementTag.Text = "";
				lblElementTagMask.Text = "";
				lblElementName.Text = "";
				lbValueRepresentations.Items.Clear();
				lblValueMultiplicity.Text = "";
				lblPrivateCreator.Text = "";
			} else {
				lblElementTag.Text = entry.DisplayTag.ToUpper();
				lblElementTagMask.Text = String.Format("{0:X8}", entry.Mask);
				if (entry.Retired)
					lblElementName.Text = entry.Name + " (Retired)";
				else
					lblElementName.Text = entry.Name;
				lbValueRepresentations.Items.Clear();
				foreach (DicomVR vr in entry.AllowedVRs) {
					lbValueRepresentations.Items.Add(vr);
				}
				lblValueMultiplicity.Text = entry.VM;
				lblPrivateCreator.Text = entry.PrivateCreator;
			}
		}