Beispiel #1
0
 public void Delete(int ID)
 {
     if (this.IsEmpty())
     {
         Console.WriteLine("无可操作订单");
     }
     else if (ID >= 1 && ID <= OrderService.orderList.Count)
     {
         ID--;
         orderService.OrderDelete(ID);
     }
     else
     {
         Console.WriteLine("超出可删除范围");
     }
 }