Beispiel #1
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DicomCodec.RegisterCodecs();
            DicomCodec.RegisterExternalCodecs(".", "Dicom.Codec*.dll");

            if (File.Exists("dicom.dic"))
            {
                DcmDictionary.ImportDictionary("dicom.dic");
            }
            else
            {
                DcmDictionary.LoadInternalDictionary();
            }

            if (File.Exists("private.dic"))
            {
                DcmDictionary.ImportDictionary("private.dic");
            }

            DicomDumpForm form = new DicomDumpForm();

            foreach (string file in args)
            {
                form.AddFile(file);
            }

            Application.Run(form);
        }
Beispiel #2
0
        public void OnLoad(object sender, EventArgs e)
        {
            InitializeLog();

            DicomCodec.RegisterCodecs();
            DicomCodec.RegisterExternalCodecs(".", "Dicom.Codec*.dll");

            if (File.Exists("dicom.dic"))
            {
                DcmDictionary.ImportDictionary("dicom.dic");
            }
            else
            {
                DcmDictionary.LoadInternalDictionary();
            }

            if (File.Exists("private.dic"))
            {
                DcmDictionary.ImportDictionary("private.dic");
            }
        }
Beispiel #3
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            DicomCodec.RegisterCodecs();
            DicomCodec.RegisterExternalCodecs(".", "Dicom.Codec*.dll");

            if (File.Exists("dicom.dic"))
            {
                DcmDictionary.ImportDictionary("dicom.dic");
            }
            else
            {
                DcmDictionary.LoadInternalDictionary();
            }

            if (File.Exists("private.dic"))
            {
                DcmDictionary.ImportDictionary("private.dic");
            }

            Debug.InitializeConsoleDebugLogger();
        }