예제 #1
0
        //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;
        }
예제 #2
0
 private void HistoryNewWindow(object sender, RoutedEventArgs e)
 {
     foreach (ConfigData item in HistoryData)
     {
         if (item.IsChecked == true)
         {
             NewInstance.StartNewInstance(item.SiteAddress);
         }
     }
 }
예제 #3
0
 private void button_Click1(object sender, RoutedEventArgs e)
 {
     foreach (CheckBox cb in listBox1.Items)
     {
         if (cb.IsChecked == true)
         {
             NewInstance.StartNewInstance((string)cb.Content);
         }
     }
 }
예제 #4
0
 public void OnNewWindow(NewWindowEventArgs e)
 {
     if (BrowserCore.CefInstance.OnlyThis.IsChecked == false)
     {
         NewInstance.StartNewInstance(e.Url);
     }
     else
     {
         BrowserCore.Navigate(e.Url);
     }
 }
예제 #5
0
 private void AddNewPageButton_Click(object sender, RoutedEventArgs e)
 {
     NewInstance.StartNewInstance("about:blank");
 }