Exemple #1
0
        public void RemoveEntryFromOrder(int entryIndex)
        {
            VerifyCurrentOrderExists();

            try
            {
                currentOrder.RemoveEntryWithIndex(entryIndex);
            }
            catch (IndexOutOfRangeException ex)
            {
                throw new InvalidOperationException("This entry does not exist in the order.", ex);
            }
        }
 public void RemoveOrderWithIndex(int index, Order order)
 {
     order.RemoveEntryWithIndex(index);
 }