Example #1
0
        internal void ForgetCurrentWindow()
        {
            StopFocusMonitor();

            _viewerWindow.Pinned = true;

            var newWindow = new ViewerWindow();

            _viewerWindow = newWindow;
        }
Example #2
0
        internal void ForgetCurrentWindow()
        {
            StopFocusMonitor();

            var newWindow = new ViewerWindow
            {
                Top    = _viewerWindow.Top,
                Left   = _viewerWindow.Left,
                Width  = _viewerWindow.Width,
                Height = _viewerWindow.Height
            };

            _viewerWindow = newWindow;
        }
Example #3
0
 private void InitNewViewerWindow()
 {
     _viewerWindow         = new ViewerWindow();
     _viewerWindow.Closed += (sender, e) =>
     {
         if (ProcessHelper.IsShuttingDown())
         {
             return;
         }
         if (!(sender is ViewerWindow w) || w.Pinned)
         {
             return; // Pinned window has already been forgotten
         }
         StopFocusMonitor();
         InitNewViewerWindow();
     };
 }
Example #4
0
        internal void ForgetCurrentWindow()
        {
            StopFocusMonitor();

            _viewerWindow.Pinned = true;

            var newWindow = new ViewerWindow();

            /*if (_viewerWindow.WindowState != WindowState.Maximized)
             * {
             *  newWindow.Top = _viewerWindow.Top;
             *  newWindow.Left = _viewerWindow.Left;
             *  newWindow.Width = _viewerWindow.Width;
             *  newWindow.Height = _viewerWindow.Height;
             * }*/

            _viewerWindow = newWindow;
        }
Example #5
0
 internal ViewWindowManager()
 {
     _viewerWindow = new ViewerWindow();
 }
Example #6
0
        internal void ForgetCurrentWindow()
        {
            StopFocusMonitor();

            _viewerWindow = new ViewerWindow();
        }