Пример #1
0
		/// <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;
		}
Пример #2
0
		/// <summary>
		/// Activates the given <see cref="Viewer"/>.
		/// </summary>
		public void ActivateViewer(Viewer viewer)
		{
		    var request = new ActivateViewerRequest {Viewer = viewer};
		    _viewerAutomationClient.ActivateViewer(request);
		}
Пример #3
0
		/// <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);
		}
Пример #4
0
        /// <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);
        }
Пример #5
0
	    /// TODO (CR Dec 2011): Build this functionality right into ImageViewerComponent?
        public static IImageViewer GetViewer(Viewer viewer)
        {
            return ViewerAutomationTool.GetViewer(viewer.Identifier);
        }
Пример #6
0
 /// <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;
				}
			}
Пример #10
0
		/// <summary>
		/// Constructor.
		/// </summary>
		public OpenStudiesResult(Viewer viewer)
		{
			Viewer = viewer;
		}