Example #1
0
 private static void LoadInternalDictionaries()
 {
     if (_default == null)
     {
         _default = new DicomDictionary();
         _default.Add(new DicomDictionaryEntry(DicomMaskedTag.Parse("xxxx", "0000"), "Group Length", "GroupLength", DicomVM.VM_1, false, DicomVR.UL));
         LoadGeneratedDictionary_(_default);
         try {
             var assembly = Assembly.GetExecutingAssembly();
             var stream   = assembly.GetManifestResourceStream("Dicom.Dictionaries.Private Dictionary.xml.gz");
             var gzip     = new GZipStream(stream, CompressionMode.Decompress);
             var reader   = new DicomDictionaryReader(_default, DicomDictionaryFormat.XML, gzip);
             reader.Process();
         } catch (Exception e) {
             throw new DicomDataException("Unable to load private dictionary from resources.\n\n" + e.Message, e);
         }
     }
 }
Example #2
0
        private static string GetImplementationVersion()
        {
            var version = Assembly.GetExecutingAssembly().GetName().Version;

            return(String.Format("fo-dicom {0}.{1}.{2}", version.Major, version.Minor, version.Build));
        }