Exemple #1
0
 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);
     };
 }
Exemple #2
0
 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);
     };
 }
Exemple #3
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     _ieYahoo?.Dispose();
     _ieGoogle?.Dispose();
 }