internal static void OnViewerClosed(IImageViewer viewer) { var info = GetKeyImageClipboard(viewer); KeyImageClipboards.Remove(viewer); if (info != null) { try { info.Publish(); } catch (Exception e) { //Should never happen because KeyImagePublisher.Publish doesn't throw exceptions. ExceptionHandler.Report(e, Application.ActiveDesktopWindow); } finally { info.Dispose(); } } ManageActivityMonitorConnection(); }
internal static void OnViewerOpened(IImageViewer viewer) { if (!KeyImageClipboards.ContainsKey(viewer)) { KeyImageClipboards[viewer] = new KeyImageClipboard(viewer.StudyTree); } ManageActivityMonitorConnection(); }
internal static void OnViewerOpened(IImageViewer viewer) { if (!KeyImageClipboards.ContainsKey(viewer)) { var keyImageClipboard = new KeyImageClipboard(viewer.StudyTree); KeyImageClipboards[viewer] = keyImageClipboard; viewer.EventBroker.StudyLoaded += keyImageClipboard.OnStudyLoaded; } ManageActivityMonitorConnection(); }