private void UnWrapBrowserEvents(ExtendedWebBrowser browser)
 {
     browser.DocumentTitleChanged -= browser_DocumentTitleChanged;
     browser.StartNewWindow       -= browser_StartNewWindow;
     browser.StartNewTab          -= browser_StartNewTab;
     browser.Quit -= browser_Quit;
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
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;
 }
 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);
        }
Exemplo n.º 7
0
 public WebBrowserExtendedEvents(ExtendedWebBrowser browser)
 {
     _Browser = browser;
 }
Exemplo n.º 8
0
 private void UnWrapBrowserEvents(ExtendedWebBrowser browser)
 {
     browser.DocumentTitleChanged -= browser_DocumentTitleChanged;
     browser.StartNewWindow -= browser_StartNewWindow;
     browser.StartNewTab -= browser_StartNewTab;
     browser.Quit -= browser_Quit;
 }
Exemplo n.º 9
0
        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;
 }
Exemplo n.º 11
0
 private void WrapBrowserEvents(ExtendedWebBrowser browser)
 {
     browser.DocumentTitleChanged += browser_DocumentTitleChanged;
     browser.StartNewWindow += browser_StartNewWindow;
 }