コード例 #1
0
ファイル: DcmDictionary.cs プロジェクト: rameshr/mdcm
 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
ファイル: DicomDictionaryForm.cs プロジェクト: hide1980/mdcm
		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;
			}
		}