示例#1
0
 private void Instance_SeriesReady(object sender, SeriesInformationEventArgs e)
 {
     try
     {
         LoadSeriesInViewer(e.PatientId, e.StudyInstanceUID, e.SeriesInstanceUID, DicomClientMode.LocalDb);
     }
     catch (Exception exception)
     {
         ThreadSafeMessager.ShowError(exception.Message);
     }
 }
        private void Instance_SeriesReady(object sender, SeriesInformationEventArgs e)
        {
            try
            {
                LoadSeriesInViewer(e.PatientId, e.StudyInstanceUID, e.SeriesInstanceUID, DicomClientMode.LocalDb);

                //we also switch the UI to the workstation viewer next
                if (null != __WorkstationViewer)
                {
                    ThreadSafeMessager.Owner.Invoke(new Action(() => { ExecuteFeature(UIElementKeys.WorkstationViewer); }));
                }
            }
            catch (Exception exception)
            {
                ThreadSafeMessager.ShowError(exception.Message);
            }
        }