public PaypalPmt_Page() { InitializeComponent(); webView = new WPFBrowserView(BrowserFactory.Create()); mainLayout.Children.Add((UIElement)webView.GetComponent()); webView.Browser.LoadURL("http://web.csulb.edu/~phuynh/cecs491b/index.html"); }
private void InitBrowser() { try { string path = Assembly.GetExecutingAssembly().Location; string appDir = Path.GetDirectoryName(path); #if DEBUG LoggerProvider.Instance.LoggingEnabled = true; LoggerProvider.Instance.FileLoggingEnabled = true; string logsDir = Path.Combine(appDir, "Logs"); if (!Directory.Exists(logsDir)) { Directory.CreateDirectory(logsDir); } LoggerProvider.Instance.OutputFile = Path.Combine(logsDir, $"DotNetBrowser-{new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Local)}.log"); #endif var uri = new Uri(Path.Combine(appDir, @"PokeEase\index.html")); var browser = BrowserFactory.Create(BrowserType.LIGHTWEIGHT); webView = new WPFBrowserView(browser); browserLayout.Children.Add((UIElement)webView.GetComponent()); webView.Browser.LoadURL(uri.ToString()); } catch { NecroBot.Logic.Logging.Logger.Write("DotNetBrowser has encountered an issue, and has been shut down to prevent a crash", LogLevel.Warning); Settings.Default.BrowserToggled = false; Settings.Default.Save(); BrowserSync(false); } }
public PaypalPmt() { InitializeComponent(); webView = new WPFBrowserView(BrowserFactory.Create()); mainLayout.Children.Add((UIElement)webView.GetComponent()); webView.Browser.LoadURL("http://www.google.com"); }
public MainWindow() { InitializeComponent(); webView = new WPFBrowserView(); mainLayout.Children.Add((UIElement)webView.GetComponent()); webView.Browser.LoadURL("http://localhost:58602"); }
public MapForm() { StartPosition = FormStartPosition.CenterScreen; InitializeComponent(); browserView = new WinFormsBrowserView(); pnl_Map.Controls.Add((Control)browserView.GetComponent()); browserView.Browser.LoadURL("http://maps.google.com"); }
private void InitBrowser() { webView = new WPFBrowserView(BrowserFactory.Create()); browserLayout.Children.Add((UIElement)webView.GetComponent()); string path = System.Reflection.Assembly.GetExecutingAssembly().Location; string appDir = Path.GetDirectoryName(path); var uri = new Uri(Path.Combine(appDir, @"PokeEase\index.html")); webView.Browser.LoadURL(uri.ToString()); }
private void Map_Load(object sender, EventArgs e) { browserView = new WinFormsBrowserView(); this.Controls.Add((Control)browserView.GetComponent()); browserView.Browser.LoadURL("http://maps.google.com"); }