void FrmOMS_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (sender is OrdersControl)
     {
         OrdersControl = null;
     }
 }
        private void 导入彩票数据ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //this.panel1.Controls.Clear();
            //this.panel1.Controls.Add(OrdersControl);
            //dockPanel2.Visible = false;

            //this.dockPanel2.Controls.Clear();
            //this.dockPanel2.Controls.Add(OrdersControl);

            this.scrollingText1.Visible = true;
            toolStrip1.Visible          = false;


            if (OrdersControl == null)
            {
                OrdersControl             = new OrdersControl(this.txtSAPUserId.Text, this.txtSAPPassword.Text.Trim());
                OrdersControl.FormClosed += new FormClosedEventHandler(FrmOMS_FormClosed);
            }
            if (OrdersControl == null)
            {
                OrdersControl = new OrdersControl(this.txtSAPUserId.Text, this.txtSAPPassword.Text.Trim());
            }
            OrdersControl.Show(this.dockPanel2);
        }