示例#1
0
        private static void OpenViewer(EntityRef orderRef, IDesktopWindow desktopWindow)
        {
            if (!CheckSupported(desktopWindow))
            {
                return;
            }

            try
            {
                ViewImagesHelper.ViewStudies(orderRef,
                                             new ViewImagesHelper.ViewStudiesOptions {
                    Interactive = true, DesktopWindow = desktopWindow
                });
            }
            catch (Exception e)
            {
                ExceptionHandler.Report(e, desktopWindow);
            }
        }
示例#2
0
        private static void OpenViewer(WorklistItemSummaryBase item, IDesktopWindow desktopWindow)
        {
            if (item == null)
            {
                return;
            }
            if (!CheckSupported(desktopWindow))
            {
                return;
            }

            try
            {
                ViewImagesHelper.ViewStudies(item.OrderRef, new[] { item.ProcedureRef },
                                             new ViewImagesHelper.ViewStudiesOptions {
                    FallbackToOrder = true, Interactive = true, DesktopWindow = desktopWindow
                });
            }
            catch (Exception e)
            {
                ExceptionHandler.Report(e, desktopWindow);
            }
        }