private void btnOpenGoogle_Click(object sender, EventArgs e) { if (_ieGoogle != null) { _ieGoogle.Dispose(); } _ieGoogle = new IeManager(@"https://www.google.com/"); lblCloseParentGoogle.Text = _ieYahoo.IsParentClosed.ToString(); _ieGoogle.onQuitParentAction = () => { Invoke(new Action <int>(SetLabelMsg), 1); }; }
private void btnOpenYahoo_Click(object sender, EventArgs e) { if (_ieYahoo != null) { _ieYahoo.Dispose(); } _ieYahoo = new IeManager(@"https://www.yahoo.co.jp/"); this.lblCloseParentYahoo.Text = _ieYahoo.IsParentClosed.ToString(); _ieYahoo.onQuitParentAction = () => { Invoke(new Action <int>(SetLabelMsg), 0); }; }