コード例 #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
ファイル: ViewerAutomation.cs プロジェクト: nhannd/Xian
	    /// 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;
 }
コード例 #7
0
			public ViewerInfo(ViewerAutomationIntegration owner, Viewer viewer, string[] studyInstanceUids)
			{
				_owner = owner;
				Viewer = viewer;
				StudyInstanceUids = studyInstanceUids;
			}
コード例 #8
0
			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
				}
			}
コード例 #9
0
			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;
		}