Esempio n. 1
0
        // Updates the wheels
        public void UpdateWheels(string comboBox, BikeStock stock)
        {
            double temp = 0;

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

            temp            = stock.Wheels(comboBox);
            Cost            = Cost + temp;
            stock.WheelCost = temp;
        }