예제 #1
0
        public void managerMainMenu()
        {
            int input = 0;



            Console.WriteLine("                                                                         ");
            Console.WriteLine("                                                                         ");
            Console.WriteLine("                                                                         ");
            Console.WriteLine("       +================================================================+");
            Console.WriteLine("       |                                                                |");
            Console.WriteLine("       |                        MANAGER  lOGIN                          |");
            Console.WriteLine("       |                                                                |");
            Console.WriteLine("       +================================================================+");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       |                    [1] LOGIN                                   |");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       |                    [2] ADD INVENTORY                           |");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       |                    [3] REMOVE INVENTORY                        |");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       |                    [4]                                         |");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       |                    [5]                                         |");
            Console.WriteLine("       +----------------------------------------------------------------+");



            input = Int32.Parse(Console.ReadLine());

            switch (input)
            {
            case 1:
                Console.Clear();
                var productsMenu = new ProductsMenu();
                productsMenu.viewProductMenu();
                break;

            case 2:
                Console.Clear();
                var ordersMenu = new OrdersMenu();
                ordersMenu.viewOrdersMenu();
                break;

            case 3:
                Console.Clear();
                var customersMenu = new CustomersMenu();
                customersMenu.viewCustomersMenu();
                break;

            case 4:
                Console.Clear();
                var locationsMenu = new LocationsMenu();
                locationsMenu.viewLocationsMenu();
                break;

            case 5:
                Console.Clear();
                var cartsMenu = new CartsMenu();
                cartsMenu.viewCartMenu();
                break;

            default:
                var mainMenu = new MainMenu();
                mainMenu.viewMainMenu();
                break;
            }
        }
예제 #2
0
        public void viewMainMenu()
        {
            int input = 0;



            Console.WriteLine("                                                                         ");
            Console.WriteLine("                                                                         ");
            Console.WriteLine("                                                                         ");
            Console.WriteLine("       +================================================================+");
            Console.WriteLine("       |                                                                |");
            Console.WriteLine("       |            Welcome to 'Couch Potato Cart' Grocery Store        |");
            Console.WriteLine("       |                                                                |");
            Console.WriteLine("       +================================================================+");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       |                    [1] GO TO PRODUCT CATALOG                   |");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       |                    [2] CREATE AN ORDER                         |");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       |                    [3] SIGN UP                                 |");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       |                    [4] FIND A LOCATION                         |");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       +----------------------------------------------------------------+");
            Console.WriteLine("       |                    [5] VIEW SHOPPING CART                      |");
            Console.WriteLine("       +----------------------------------------------------------------+");



            input = Int32.Parse(Console.ReadLine());

            switch (input)
            {
            case 1:
                Console.Clear();
                var productsMenu = new ProductsMenu();
                productsMenu.viewProductMenu();
                break;

            case 2:
                Console.Clear();
                var ordersMenu = new OrdersMenu();
                ordersMenu.viewOrdersMenu();
                break;

            case 3:
                Console.Clear();
                var customersMenu = new CustomersMenu();
                customersMenu.viewCustomersMenu();
                break;

            case 4:
                Console.Clear();
                var locationsMenu = new LocationsMenu();
                locationsMenu.viewLocationsMenu();
                break;

            case 5:
                Console.Clear();
                var cartsMenu = new CartsMenu();
                cartsMenu.viewCartMenu();
                break;

            default:
                var mainMenu = new MainMenu();
                mainMenu.viewMainMenu();
                break;
            }
        }