Beispiel #1
0
 void FrmOMS_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (sender is OrdersControl)
     {
         OrdersControl = null;
     }
 }
Beispiel #2
0
        private void 导入彩票数据ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            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);
        }