private void UnWrapBrowserEvents(ExtendedWebBrowser browser)
 {
     browser.DocumentTitleChanged -= browser_DocumentTitleChanged;
     browser.StartNewWindow       -= browser_StartNewWindow;
     browser.StartNewTab          -= browser_StartNewTab;
     browser.Quit -= browser_Quit;
 }
Exemple #2
0
 public void AssignTab(TabItem tab, ExtendedWebBrowser browserTab)
 {
     TabMain.Items.Add(tab);
     browserTab.Quit += browserTab_Quit;
     browserTab.DocumentTitleChanged += browserTab_DocumentTitleChanged;
     browserTab.WindowSetWidth       += browserTab_WindowSetWidth;
     browserTab.WindowSetHeight      += browserTab_WindowSetHeight;
     browserTab.WindowSetLeft        += browserTab_WindowSetLeft;
     browserTab.WindowsSetTop        += browserTab_WindowsSetTop;
     browserTab.DocumentCompleted    += browserTab_DocumentCompleted;
 }
 public void AssignTab(TabItem tab, ExtendedWebBrowser browserTab)
 {
     TabMain.Items.Add(tab);
     browserTab.Quit += browserTab_Quit;
     browserTab.DocumentTitleChanged += browserTab_DocumentTitleChanged;
     browserTab.WindowSetWidth += browserTab_WindowSetWidth;
     browserTab.WindowSetHeight += browserTab_WindowSetHeight;
     browserTab.WindowSetLeft += browserTab_WindowSetLeft;
     browserTab.WindowsSetTop += browserTab_WindowsSetTop;
     browserTab.DocumentCompleted += browserTab_DocumentCompleted;
 }
 private void ActiveBrowserBack()
 {
     if (HasActiveBrowser())
     {
         ExtendedWebBrowser b = GetActiveBrowser();
         if (b.CanGoBack)
         {
             b.GoBack();
         }
     }
 }
 private void ActiveBrowserForward()
 {
     if (HasActiveBrowser())
     {
         ExtendedWebBrowser b = GetActiveBrowser();
         if (b.CanGoForward)
         {
             b.GoForward();
         }
     }
 }
        private TabItem CreateNewBrowserTab()
        {
            var t = new TabItem();

            tbMain.Items.Add(t);
            tbMain.SelectedItem = t;
            t.Header            = "Yeni Sayfa";
            var host = new WindowsFormsHost();
            var b    = new ExtendedWebBrowser {
                Tag = t, ScriptErrorsSuppressed = true
            };

            host.Child = b;

            t.Content = host;

            WrapBrowserEvents(b);

            _browserTabs.Add(t, b);
            _tabQueue.Add(t);

            return(t);
        }
 public WebBrowserExtendedEvents(ExtendedWebBrowser browser)
 {
     _Browser = browser;
 }
 private void UnWrapBrowserEvents(ExtendedWebBrowser browser)
 {
     browser.DocumentTitleChanged -= browser_DocumentTitleChanged;
     browser.StartNewWindow -= browser_StartNewWindow;
     browser.StartNewTab -= browser_StartNewTab;
     browser.Quit -= browser_Quit;
 }
        private TabItem CreateNewBrowserTab()
        {
            var t = new TabItem();
            tbMain.Items.Add(t);
            tbMain.SelectedItem = t;
            t.Header = "Yeni Sayfa";
            var host = new WindowsFormsHost();
            var b = new ExtendedWebBrowser { Tag = t, ScriptErrorsSuppressed = true };
            host.Child = b;

            t.Content = host;

            WrapBrowserEvents(b);

            _browserTabs.Add(t, b);
            _tabQueue.Add(t);

            return t;
        }
 public WebBrowserExtendedEvents(ExtendedWebBrowser browser)
 {
     _Browser = browser;
 }
 private void WrapBrowserEvents(ExtendedWebBrowser browser)
 {
     browser.DocumentTitleChanged += browser_DocumentTitleChanged;
     browser.StartNewWindow += browser_StartNewWindow;
 }