Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        internal static void OnViewerOpened(IImageViewer viewer)
        {
            if (!KeyImageClipboards.ContainsKey(viewer))
            {
                KeyImageClipboards[viewer] = new KeyImageClipboard(viewer.StudyTree);
            }

            ManageActivityMonitorConnection();
        }
Esempio n. 3
0
        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();
        }