public CaptureListFrm(ChromeHelper chrome) { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; this.chrome = chrome; LoadListView(); }
private void Execute() { if (chrome == null) { chrome = new ChromeHelper("http://www.10010.com"); chrome.Init(); var browser = chrome.CreateBrowser(); this.Invoke(new Action <Panel>(p => { p.Controls.Add(browser); p.Update(); }), this.panel1); } }