public void SetOrder(Command command) { //if (command is BakeLampCommand) //{ // Console.WriteLine("没羊排了"); //} //else //{ orders.Add(command); Console.WriteLine("增加订单:" + command.ToString() + " 时间:" + DateTime.Now.ToString()); //} }
public void CancelOrder(Command command) { orders.Remove(command); Console.WriteLine("取消订单:" + command.ToString() + " 时间:" + DateTime.Now.ToString()); }