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