Exemplo n.º 1
0
 private void Initialization(string uri)
 {
     DefaultBrowser app = new DefaultBrowser();
     app.CloseBrowser();
     //BrowserWindow.ClearCache();
     //BrowserWindow.ClearCookies();
     app.LaunchUrl(uri);
     app.Maximized = true;
 }
Exemplo n.º 2
0
 public static BrowserWindow GetBrowser(this IControl control,List<UIProperty> properties)
 {
     bool hasDifferentBrowser = properties.Exists(uiproperty => uiproperty.PropertyName.Equals("bName"));
     DefaultBrowser b = new DefaultBrowser();
     if (hasDifferentBrowser)
     {
         string propValue = properties.Find(uiproperty => uiproperty.PropertyName.Equals("bName")).PropertyValue;
         b.SearchProperties[HtmlControl.PropertyNames.Name] = propValue;
     }
     return b;
 }