/// <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); } }