Exemplo n.º 1
0
        private static void initialization()
        {
            appRunning = true;

            List<Product> products = new List<Product>();
            products.Add(new Product("cupcakes", 50, 4));
            products.Add(new Product("cookie", 10, 3));
            products.Add(new Product("wafers", 30, 10));
            stockpile = new Stockpile(products);
            coinsBox = new CoinsBox(20,4,2,1);
            moneyHolder = new MoneyHolder(0, coinsBox);
            view = new View(stockpile, moneyHolder);
        }
Exemplo n.º 2
0
        private static void initialization()
        {
            appRunning = true;

            List <Product> products = new List <Product>();

            products.Add(new Product("cupcakes", 50, 4));
            products.Add(new Product("cookie", 10, 3));
            products.Add(new Product("wafers", 30, 10));
            stockpile   = new Stockpile(products);
            coinsBox    = new CoinsBox(20, 4, 2, 1);
            moneyHolder = new MoneyHolder(0, coinsBox);
            view        = new View(stockpile, moneyHolder);
        }
Exemplo n.º 3
0
 public View(Stockpile stockpile, MoneyHolder moneyHolder)
 {
     this.stockpile = stockpile;
     this.moneyHolder = moneyHolder;
 }
Exemplo n.º 4
0
 public View(Stockpile stockpile, MoneyHolder moneyHolder)
 {
     this.stockpile   = stockpile;
     this.moneyHolder = moneyHolder;
 }