/// <summary> /// 为WebBrowser所开线程的启动入口函数,相当于Winform里面的Main() /// </summary> /// <param name="_wp"></param> private static void StaRun(object _wp) { WebPreview wp = (WebPreview)_wp; try { WebPreviewBase wpb = new WebPreviewBase(wp._uri, wp._width, wp._height, wp._fullPage); wp._bitmap = wpb.GetWebPreview(); } catch (Exception ex) { wp._ex = ex; } }
/// <summary> /// 为WebBrowser所开线程的启动入口函数,相当于Winform里面的Main() /// </summary> /// <param name="_wp"></param> private static void StaRun(object _wp) { WebPreview wp = (WebPreview)_wp; try { WebPreviewBase wpb = new WebPreviewBase(wp._uri, wp._width, wp._height, wp._fullPage); wp._bitmap = wpb.GetWebPreview(); } catch (Exception ex) { wp._ex = ex; } }