示例#1
0
 private void browserNewWindowEvent(object sender, NewWindowEventArgs e)
 {
     if (InvokeRequired)
     {
         var a = new NewPageListener(NewPage);
         Invoke(a, new object[] { e.NewUrl });
     }
     else
     {
         NewPage(e.NewUrl);
     }
 }
示例#2
0
 private void chromeWebBrowser1_BrowserNewWindow(object sender, NewWindowEventArgs e)
 {
     if (this.InvokeRequired)
     {
         NewPageListener a = new NewPageListener(NewPage);
         this.Invoke(a, new object[] { e.NewUrl, e.Request });
     }
     else
     {
         NewPage(e.NewUrl, e.Request);
     }
 }
示例#3
0
 private void browserNewWindowEvent(object sender, NewWindowEventArgs e)
 {
     if (InvokeRequired)
     {
         var a = new NewPageListener(NewPage);
         Invoke(a, new object[] {e.NewUrl});
     }
     else
     {
         NewPage(e.NewUrl);
     }
 }
示例#4
0
        public void OpenUrl(string url)
        {
            NewPageListener a = new NewPageListener(NewPage);

            this.Invoke(a, new object[] { url, null });
        }