예제 #1
0
        private void LookForOrder()          //查找订单
        {
            switch (comboBox1.SelectedIndex)
            {
            case 0:
                OrderDetailbindingSource1.DataSource = Oporder.OrderList;
                break;

            case 1:
                OrderDetailbindingSource1.DataSource = Oporder.LookForOrderI(textBox2.Text);
                break;

            case 2:
                OrderDetailbindingSource1.DataSource = Oporder.LookForOrderS(textBox2.Text);
                break;
            }
        }