Beispiel #1
0
 private void GetById_Click(object sender, EventArgs e)
 {
     if (Id.Text == "")
     {
         MessageBox.Show("请输入完整信息!");
         return;
     }
     order = orderService.GetById(int.Parse(Id.Text));
     if (order == null)
     {
         MessageBox.Show("不存在满足要求的订单!");
         return;
     }
     orders.Clear();
     orders.Add(order);
     showOrder();
 }