internal void ForgetCurrentWindow() { StopFocusMonitor(); _viewerWindow.Pinned = true; var newWindow = new ViewerWindow(); _viewerWindow = newWindow; }
internal void ForgetCurrentWindow() { StopFocusMonitor(); var newWindow = new ViewerWindow { Top = _viewerWindow.Top, Left = _viewerWindow.Left, Width = _viewerWindow.Width, Height = _viewerWindow.Height }; _viewerWindow = newWindow; }
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(); }; }
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; }
internal ViewWindowManager() { _viewerWindow = new ViewerWindow(); }
internal void ForgetCurrentWindow() { StopFocusMonitor(); _viewerWindow = new ViewerWindow(); }