public void ShowMedicalView(List <string> list) { lock (_syncLock) { _viewer.Layout(); _viewer.PhysicalWorkspace.SelectDefaultImageBox(); } }
/// <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; } }
/// <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; } }