Beispiel #1
0
        // Updates the finishing set
        public void UpdateFinishingSet(string firstCombo, string secondCombo, BikeStock stock)
        {
            double temp = 0;

            if (stock.FinishingSetCost != 0)
            {
                Cost = Cost - stock.FinishingSetCost;
            }

            temp  = stock.FinishingSet(firstCombo, secondCombo);
            Cost += temp;
            stock.FinishingSetCost = temp;
        }