Ejemplo n.º 1
0
 ///====================================================================================
 /// <summary>
 ///     Removes an accessory from the collection
 /// </summary>
 ///
 /// <param name="Accessory">
 ///     The accessory to be removed
 /// </param>
 ///====================================================================================
 public void Remove(Accessory Accessory)
 {
     // Remove the price before you remove the accessory, otherwise the price will stay the same
     TotalPrice -= Accessory.Price;
     if (Accessories.Contains(Accessory))
     {
         Accessories.Remove(Accessory);
     }
 }