private void displayCanPricesAndNames()
 {
     displayPrice0.Display("\\" + CANPRICES[0]);
     displayPrice1.Display("\\" + CANPRICES[1]);
     displayPrice2.Display("\\" + CANPRICES[2]);
     displayPrice3.Display("\\" + CANPRICES[3]);
     displayName0.Display(CANNAMES[0]);
     displayName1.Display(CANNAMES[1]);
     displayName2.Display(CANNAMES[2]);
     displayName3.Display(CANNAMES[3]);
 }
Beispiel #2
0
 /// <summary>
 /// Displays how many coins and cans of each type are available.
 /// </summary>
 private void updateDebugDisplays()
 {
     // You need to change XXX to appropriate "object.property"
     displayNum10Yen.Display(coins[0].Count);
     displayNum50Yen.Display(coins[1].Count);
     displayNum100Yen.Display(coins[2].Count);
     displayNum500Yen.Display(coins[3].Count);
     displayNumCans0.Display(drinks[0].Count);
     displayNumCans1.Display(drinks[1].Count);
     displayNumCans2.Display(drinks[2].Count);
     displayNumCans3.Display(drinks[3].Count);
 }
        private void updateDebugDisplays()
        {
            displayNum10Yen.Display(coinsInserted[0].Inserted);
            displayNum50Yen.Display(coinsInserted[1].Inserted);
            displayNum100Yen.Display(coinsInserted[2].Inserted);
            displayNum500Yen.Display(coinsInserted[3].Inserted);
            displayNumCans0.Display(products[0].Stock);
            displayNumCans1.Display(products[1].Stock);
            displayNumCans2.Display(products[2].Stock);
            displayNumCans3.Display(products[3].Stock);

            UpdateDisplays();
        }
Beispiel #4
0
        private void updateDebugDisplays()
        {
            // You need to change XXX to appropriate "object.property"

            displayNum10Yen.Display(vm.coinList[0].getCount());
            displayNum50Yen.Display(vm.coinList[1].getCount());
            displayNum100Yen.Display(vm.coinList[2].getCount());
            displayNum500Yen.Display(vm.coinList[3].getCount());
            displayNumCans0.Display(vm.canList[0].getCount());
            displayNumCans1.Display(vm.canList[1].getCount());
            displayNumCans2.Display(vm.canList[2].getCount());
            displayNumCans3.Display(vm.canList[3].getCount());
        }
        private void updateDebugDisplays()
        {
            // You need to change XXX to appropriate "object.property"

            displayNum10Yen.Display(coin10.numCoins);
            displayNum50Yen.Display(coin50.numCoins);
            displayNum100Yen.Display(coin100.numCoins);
            displayNum500Yen.Display(coin500.numCoins);
            displayNumCans0.Display(canCola.inventory);
            displayNumCans1.Display(canPepsi.inventory);
            displayNumCans2.Display(canDrPepper.inventory);
            displayNumCans3.Display(canSprite.inventory);
        }
Beispiel #6
0
        private void updateDebugDisplays()
        {
            // You need to change XXX to appropriate "object.property"

            displayNum10Yen.Display(coins[0].AmountOfCoins());
            displayNum50Yen.Display(coins[1].AmountOfCoins());
            displayNum100Yen.Display(coins[2].AmountOfCoins());
            displayNum500Yen.Display(coins[3].AmountOfCoins());
            displayNumCans0.Display(cans[0].ReturnCansLeft());
            displayNumCans1.Display(cans[1].ReturnCansLeft());
            displayNumCans2.Display(cans[2].ReturnCansLeft());
            displayNumCans3.Display(cans[3].ReturnCansLeft());
        }
Beispiel #7
0
 private void updateDebugDisplays()
 {
     // You need to change XXX to appropriate "object.property"
     displayNum10Yen.Display(coins[3].NumCoins);
     displayNum50Yen.Display(coins[2].NumCoins);
     displayNum100Yen.Display(coins[1].NumCoins);
     displayNum500Yen.Display(coins[0].NumCoins);
     displayNumCans0.Display(cans[0].Stock);
     displayNumCans1.Display(cans[1].Stock);
     displayNumCans2.Display(cans[2].Stock);
     displayNumCans3.Display(cans[3].Stock);
     amountDisplay.DisplayAmount(customer.CurrentFunds);
 }
        private void updateDebugDisplays()
        {
            // You need to change XXX to appropriate "object.property"

            displayNum10Yen.Display(_coins[3]._numberOfCoins);
            displayNum50Yen.Display(_coins[2]._numberOfCoins);
            displayNum100Yen.Display(_coins[1]._numberOfCoins);
            displayNum500Yen.Display(_coins[0]._numberOfCoins);
            displayNumCans0.Display(_cans[0]._stock);
            displayNumCans1.Display(_cans[1]._stock);
            displayNumCans2.Display(_cans[2]._stock);
            displayNumCans3.Display(_cans[3]._stock);
            amountDisplay.DisplayAmount(_economy._currentlyInserted);
        }
        private void updateDebugDisplays()
        {
            // You need to change XXX to appropriate "object.property"


            displayNum10Yen.Display(coinArr[0].Count);
            displayNum50Yen.Display(coinArr[1].Count);
            displayNum100Yen.Display(coinArr[2].Count); //I believe here I am allowed to create the getters since it's for debug. At least that's what I gathered in class.
            displayNum500Yen.Display(coinArr[3].Count);
            displayNumCans0.Display(canArr[0].Count);
            displayNumCans1.Display(canArr[1].Count);
            displayNumCans2.Display(canArr[2].Count);
            displayNumCans3.Display(canArr[3].Count);
        }
        private void updateDebugDisplays()
        {
            // You need to change XXX to appropriate "object.property"
            //coin.numCoins
#if DEBUG
            displayNum10Yen.Display(CoinArray[0].Quantity);
            displayNum50Yen.Display(CoinArray[1].Quantity);
            displayNum100Yen.Display(CoinArray[2].Quantity);
            displayNum500Yen.Display(CoinArray[3].Quantity);
            displayNumCans0.Display(BeverageArray[0].Quantity);
            displayNumCans1.Display(BeverageArray[1].Quantity);
            displayNumCans2.Display(BeverageArray[2].Quantity);
            displayNumCans3.Display(BeverageArray[3].Quantity);
#endif
        }
Beispiel #11
0
        private void updateDebugDisplays()
        {
            displayNum10Yen.Display(yen10.Num);
            displayNum50Yen.Display(yen50.Num);
            displayNum100Yen.Display(yen100.Num);
            displayNum500Yen.Display(yen500.Num);
            displayNumCans0.Display(drink1.NumCans);
            displayNumCans1.Display(drink2.NumCans);
            displayNumCans2.Display(drink3.NumCans);
            displayNumCans3.Display(drink4.NumCans);

            int total = ((yen10.NumReturn * yen10.Value) + (yen50.NumReturn * yen50.Value) + (yen100.NumReturn * yen100.Value) + (yen500.NumReturn * yen500.Value));

            amountDisplay.DisplayAmount(total);
        }
        private void updateDebugDisplays()
        {
            // You need to change XXX to appropriate "object.property"

            displayNum10Yen.Display(userMoney[0].numberOfCoins);
            displayNum50Yen.Display(userMoney[1].numberOfCoins);
            displayNum100Yen.Display(userMoney[2].numberOfCoins);
            displayNum500Yen.Display(userMoney[3].numberOfCoins);
            displayNumCans0.Display(allProduct[0].Stock);
            displayNumCans1.Display(allProduct[1].Stock);
            displayNumCans2.Display(allProduct[2].Stock);
            displayNumCans3.Display(allProduct[3].Stock);

            amountDisplay.DisplayAmount(totalAmountInserted);
        }