Exemple #1
0
        public DoMath(Sandwiches sandwich, int numOfSales)
        {
            PriceandCost SandwichesData = new PriceandCost();

            costs = SandwichesData.sandwichescost [(int)sandwich];
            price = SandwichesData.sandwichesprice[(int)sandwich];
            units = numOfSales;
        }
Exemple #2
0
        public DoMath(Coffee size, int numOfSales)
        {
            PriceandCost CoffeeData = new PriceandCost();

            costs = CoffeeData.coffeecost [(int)size];
            price = CoffeeData.coffeeprice[(int)size];
            units = numOfSales;
        }