/// <summary> /// Gets additional studies, not including the primary one, for the given <see cref="Viewer"/>. /// </summary> public IList<string> GetViewerAdditionalStudies(Viewer viewer) { var request = new GetViewerInfoRequest(); return _viewerAutomationClient.GetViewerInfo(request).AdditionalStudyInstanceUids; }
/// <summary> /// Activates the given <see cref="Viewer"/>. /// </summary> public void ActivateViewer(Viewer viewer) { var request = new ActivateViewerRequest {Viewer = viewer}; _viewerAutomationClient.ActivateViewer(request); }
/// <summary> /// Closes the given <see cref="Viewer"/>. /// </summary> /// <param name="viewer"></param> public void CloseViewer(Viewer viewer) { var request = new CloseViewerRequest {Viewer = viewer}; _viewerAutomationClient.CloseViewer(request); }
/// <summary> /// Gets additional studies, not including the primary one, for the given <see cref="Viewer"/>. /// </summary> public IList <string> GetViewerAdditionalStudies(Viewer viewer) { var request = new GetViewerInfoRequest(); return(_viewerAutomationClient.GetViewerInfo(request).AdditionalStudyInstanceUids); }
/// TODO (CR Dec 2011): Build this functionality right into ImageViewerComponent? public static IImageViewer GetViewer(Viewer viewer) { return ViewerAutomationTool.GetViewer(viewer.Identifier); }
/// <summary> /// Constructor. /// </summary> public OpenStudiesResult(Viewer viewer) { Viewer = viewer; }
public ViewerInfo(ViewerAutomationIntegration owner, Viewer viewer, string[] studyInstanceUids) { _owner = owner; Viewer = viewer; StudyInstanceUids = studyInstanceUids; }
public void CloseViewer(Viewer viewer) { try { _viewerAutomation.CloseViewer(new CloseViewerRequest { Viewer = viewer }); } catch (FaultException<ViewerNotFoundFault>) { // eat this exception, as it really just means that the user has already closed the viewer workspace } }
public bool ActivateViewer(Viewer viewer) { try { _viewerAutomation.ActivateViewer(new ActivateViewerRequest { Viewer = viewer }); return true; } catch (FaultException<ViewerNotFoundFault>) { return false; } }