Exemple #1
0
        public ProductPricing(object key)
        {
            ItemPrices.Add("Gear", ComponentPricing.GearCostPerUnit);
            ItemPrices.Add("Lever", ComponentPricing.SpringCostPerUnit);
            ItemPrices.Add("Spring", ComponentPricing.LeverCostPerUnit);


            if (ItemPrices.TryGetValue(key, out WagCustomerTypeAndOrder.RunningTotal) == true)
            {
                WagCustomerTypeAndOrder.AddToRunningTotal(ItemPrices[key]);
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            //Set the screen
            Console.WindowLeft = 0;
            Console.WindowTop  = 0;
            Console.SetWindowSize(80, 50);

            // Display the company welcome
            CompanyIntro companyIntro = new CompanyIntro();

            companyIntro.Intro();

            // Get the user type
            WagCustomerTypeAndOrder.GetOrderType();

            // Present the products for something to add to cart
            WagProductCatalog ProductMenu = new WagProductCatalog();

            Console.BackgroundColor = ConsoleColor.Black;
        }