Exemple #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);
        }
Exemple #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");
            }
        }
Exemple #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();
        }