Ejemplo n.º 1
0
 public void ShowMedicalView(List <string> list)
 {
     lock (_syncLock)
     {
         _viewer.Layout();
         _viewer.PhysicalWorkspace.SelectDefaultImageBox();
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Launches the specified <see cref="ImageViewerComponent"/> using the <paramref name="window"/> parameter.
        /// </summary>
        public static void Launch(ImageViewerComponent imageViewer, IDesktopWindow window, string title)
        {
            IWorkspace workspace = LaunchAsWorkspace(window, imageViewer, title);

            imageViewer.ParentDesktopObject = workspace;
            try
            {
                imageViewer.Layout();
            }
            catch (Exception)
            {
                workspace.Close();
                throw;
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Launches the specified <see cref="ImageViewerComponent"/> using the <paramref name="window"/> parameter.
        /// </summary>
        public static void Launch(ImageViewerComponent imageViewer, IDesktopWindow window, string title)
        {
            IWorkspace workspace = LaunchAsWorkspace(window, imageViewer, title);

            workspace.Closed += delegate {
                imageViewer.Dispose();
            };
            try
            {
                imageViewer.Layout();
            }
            catch (Exception)
            {
                workspace.Close();
                throw;
            }
        }