//WebBrowser Help Functions //ProcessStartInfo psi; private void WebBrowserOnNewWindow(object sender, System.ComponentModel.CancelEventArgs e) { WebBrowser browser = (WebBrowser)sender; dynamic activeElement = ((HTMLDocument)browser.Document).activeElement; string link = activeElement.ToString( ); NewInstance.StartNewInstance(link); e.Cancel = true; }
private void HistoryNewWindow(object sender, RoutedEventArgs e) { foreach (ConfigData item in HistoryData) { if (item.IsChecked == true) { NewInstance.StartNewInstance(item.SiteAddress); } } }
private void button_Click1(object sender, RoutedEventArgs e) { foreach (CheckBox cb in listBox1.Items) { if (cb.IsChecked == true) { NewInstance.StartNewInstance((string)cb.Content); } } }
public void OnNewWindow(NewWindowEventArgs e) { if (BrowserCore.CefInstance.OnlyThis.IsChecked == false) { NewInstance.StartNewInstance(e.Url); } else { BrowserCore.Navigate(e.Url); } }
private void AddNewPageButton_Click(object sender, RoutedEventArgs e) { NewInstance.StartNewInstance("about:blank"); }