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