Esempio n. 1
0
        // Updates the frame
        public void UpdateFrame(string firstCombo, string secondCombo, BikeStock stock)
        {
            double temp = 0;

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

            temp            = stock.Frame(firstCombo, secondCombo);
            Cost            = Cost + temp;
            stock.FrameCost = temp;
        }