Exemple #1
0
 /// <summary>
 /// 浏览器窗口常用操作类
 /// </summary>
 /// <param name="defWidth">默认宽度</param>
 /// <param name="defHeight">默认高度</param>
 /// <param name="initialUrl">初始的超链接,默认为空白页</param>
 public WebBrowserWindow(int defWidth, int defHeight, string initialUrl = "about:blank")
 {
     _currentWidth  = defWidth;
     _currentHeight = defHeight;
     _currentURL    = initialUrl;
     _browserClient = new FxCore.BrowserClient(this);
 }
 /// <summary>
 /// 浏览器生命周期事件处理类
 /// </summary>
 /// <param name="client">浏览器客户端事件处理对象</param>
 internal LifeSpanHandler(BrowserClient client)
 {
     _currentClient  = client;
     OnAfterCreated += new CfxOnAfterCreatedEventHandler(LifeSpanHandler_OnAfterCreated);
     OnBeforePopup  += new CfxOnBeforePopupEventHandler(LifeSpanHandler_OnBeforePopup);
 }