Ejemplo n.º 1
0
 void FrmOMS_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (sender is OrdersControl)
     {
         OrdersControl = null;
     }
 }
Ejemplo n.º 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(), is_AdminIS);
                OrdersControl.FormClosed += new FormClosedEventHandler(FrmOMS_FormClosed);
            }
            if (OrdersControl == null)
            {
                OrdersControl = new OrdersControl(this.txtSAPUserId.Text, this.txtSAPPassword.Text.Trim(), is_AdminIS);
            }
            OrdersControl.Show(this.dockPanel2);
        }