Example #1
0
        public void Show()
        {
            scrollPosition   = new Vector2(0, 0);
            editing          = false;
            tags             = false;
            currentHighlight = ItemType.Network;

            visible = true;
            browserWindow.Show();
        }
Example #2
0
        private void InitializeWindow()
        {
            window                 = uiFactory.CreateBrowserWindow(control, settings, isMainInstance);
            window.Closing        += () => Terminated?.Invoke(Id);
            window.AddressChanged += Window_AddressChanged;
            window.BackwardNavigationRequested += Window_BackwardNavigationRequested;
            window.DeveloperConsoleRequested   += Window_DeveloperConsoleRequested;
            window.ForwardNavigationRequested  += Window_ForwardNavigationRequested;
            window.ReloadRequested             += ReloadRequested;
            window.ZoomInRequested             += ZoomInRequested;
            window.ZoomOutRequested            += ZoomOutRequested;
            window.ZoomResetRequested          += ZoomResetRequested;
            window.UpdateZoomLevel(CalculateZoomPercentage());
            window.Show();

            logger.Debug("Initialized browser window.");
        }