private void itemMenu_OnClicked(object sender, EventArgs e)
 {
     //在此打开封装了WebKit内核的浏览器窗口
     if (barFunction.WinType == 0)
     {
         //0 模式窗口
         new BarWebKitFrom(this.mainFrm, barFunction).ShowDialog();
     }
     else
     {
         //1
         if (webKitFrom == null)
         {
             this.webKitFrom             = new BarWebKitFrom(this.mainFrm, barFunction);
             this.webKitFrom.MdiParent   = this.mainFrm.getMDI;
             this.webKitFrom.FormClosed += WebKitFrom_FormClosed;
             this.webKitFrom.Show();
         }
         else
         {
             this.webKitFrom.Activate();
         }
     }
 }
 private void WebKitFrom_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     this.webKitFrom.Dispose();
     this.webKitFrom = null;
 }