Beispiel #1
0
        private void OnPriorStudyLoadFailed(object sender, StudyLoadFailedEventArgs e)
        {
            bool notFoundError = e.Error is NotFoundLoadStudyException;

            if (!notFoundError && (e.Error is LoadSopsException || e.Error is StudyLoaderNotFoundException))
            {
                if (null != GetImageSet(e.Study.StudyInstanceUid))
                {
                    return;
                }

                var reconciled = (ReconcilePatientInfo ? ReconcilePatient(e.Study) : e.Study) ?? e.Study;
                var studyItem  = new StudyRootStudyIdentifier(reconciled, e.Study);
                ImageSetDescriptor descriptor = new DicomImageSetDescriptor(studyItem, e.Study.Server, e.Error);
                AddImageSet(new ImageSet(descriptor));
            }
        }
Beispiel #2
0
 internal void OnStudyLoadFailed(StudyLoadFailedEventArgs studyLoadFailedArgs)
 {
     EventsHelper.Fire(_studyLoadFailedEvent, this, studyLoadFailedArgs);
 }