Ejemplo n.º 1
0
 /// <summary>
 ///     Removes a shelf from the collection
 /// </summary>
 public void Remove(Shelf shelf)
 {
     TotalPrice    -= shelf.Price;
     TotalQuantity -= shelf.Quantity;
     if (Shelves.Contains(shelf))
     {
         Shelves.Remove(shelf);
     }
 }