//add by yanbing20070924 添加重载方法
 #region LoadFormToPanel(重载使用窗体为BaseForm)
 /// <summary>
 /// 点击菜单子窗体Dock到夫窗体指定容器panel
 /// </summary>
 /// <param name="frm">子窗体实例</param>
 public void LoadFormToPanel(BaseForm frm)
 {
     this.panelMain.Controls.Clear();
     //modified by sunhl
     if (this.panelMain.Controls.Contains(frm))
     {
         frm.Show();
         frm.BringToFront();
         this.labelfrmtxt.Text         = frm.Text;
         this.tableLayoutPanel.Visible = (this.panelMain.Controls.Count > 0);
     }
     else
     {
         frm.Location        = new Point(0, 0);
         frm.TopLevel        = false;
         frm.TopMost         = false;
         frm.ControlBox      = false;
         frm.FormBorderStyle = FormBorderStyle.None;
         frm.Dock            = DockStyle.Fill;
         frm.Visible         = true;
         this.panelMain.Controls.Add(frm);
         frm.Show();
         frm.BringToFront();
         this.labelfrmtxt.Text         = frm.Text;
         this.tableLayoutPanel.Visible = (this.panelMain.Controls.Count > 0);
     }
 }