Ejemplo n.º 1
0
        public static void CustomerNavigation(User user)
        {
            //navigation system for the cystomer with all its options.
            Console.WriteLine("\nPlease pick a option.\n[1] Look at all movies.\n[2] Search by genre.\n[3] Look at upcoming movies.\n[4] Reserve tickets.\n[5] Order food.\n[6] Go to comments. \n[7] Go to shopping cart.\n[0] Exit application.");
            int choice = Program.ChoiceInput(0, 7);

            while (choice != 0)
            {
                if (choice == 1)
                {
                    //show all movies
                    Filters.AgeFilter(user);
                }
                else if (choice == 2)
                {
                    //search by genre
                    Filters.GenreFilter(user);
                }
                else if (choice == 3)
                {
                    //look at futute movies
                    Filters.FutureMovies(user);
                }
                else if (choice == 4)
                {
                    //reserve tickets
                    ReserveTickets.ReserveTicketsMain(user);
                }
                else if (choice == 5)
                {
                    //order food
                    CostumerFoodOrder.Costumer(user);
                }
                else if (choice == 6)
                {
                    CommentSystem.CommentMain(user);
                }
                else if (choice == 7)
                {
                    //shopping cart
                    Shoppingcart.ShoppingcartNav(user);
                }
                Console.WriteLine("\nPlease pick a option.\n[1] Look at all movies.\n[2] Search by genre.\n[3] Look at upcoming movies.\n[4] Reserve tickets.\n[5] Order food.\n[6] Go to comments. \n[7] Go to shopping cart.\n[0] Exit application.");
                choice = Program.ChoiceInput(0, 7);
            }
            Environment.Exit(0);
        }
Ejemplo n.º 2
0
        public static void ShoppingcartNav(User user)
        {
            data = null;
            ShoppingcartConverter(user);
            //seeCart(user);
            ShoppingcartShowItems(user);

            //double totalPrice = 0;
            //Console.WriteLine("------------------\nYour total price: $"+ totalPrice + "\n------------------");
            Console.WriteLine("\nPlease pick an option.\n[1] Checkout.\n[2] Remove item from shoppingcart.\n[3] Continue shopping.\n[4] Back.");
            int choice = Program.ChoiceInput(0, 4);

            while (choice != 0)
            {
                if (choice == 1)
                {
                    if (data == null || data.Length == 0)
                    {
                        Console.WriteLine("\nSorry you don't have any items in your shoppingcart\nPlease come back when you have added an item to your shoppingcart.");
                        ShoppingcartNav(user);
                    }
                    else if (data.Length > 0 || data != null)
                    {
                        ShoppingcartShowItems(user);
                        Console.WriteLine("Are you sure you want to checkout with these items?\nYour total is: $" + ShoppingcartTotalPrice(user) + "\n[1] Yes.\n[2] No.");
                        int choiceCreditConformation = Program.ChoiceInput(0, 2);
                        while (choiceCreditConformation != 0)
                        {
                            if (choiceCreditConformation == 1)
                            {
                                ShoppingcartCheckout(user);
                            }
                            else if (choiceCreditConformation == 2)
                            {
                                ShoppingcartNav(user);
                            }
                        }
                    }
                }
                else if (choice == 2)
                {
                    if (data == null || data.Length == 0)
                    {
                        Console.WriteLine("\nSorry you don't have any items in your shoppingcart\nPlease come back when you have added an item to your shoppingcart.");
                        ShoppingcartNav(user);
                    }
                    else if (data.Length > 0)
                    {
                        Console.WriteLine("Are you sure you want to remove an item of your shoppingcart?\n[1] Yes.\n[2] No.");
                        int choiceItemRemoveConformation = Program.ChoiceInput(0, 2);
                        while (choiceItemRemoveConformation != 0)
                        {
                            if (choiceItemRemoveConformation == 1)
                            {
                                ShoppingcartRemove(user);
                            }
                            else if (choiceItemRemoveConformation == 2)
                            {
                                ShoppingcartNav(user);
                            }
                        }
                    }
                }
                else if (choice == 3)
                {
                    Console.WriteLine("\nPlease pick an option.\n[1] Reserve tickets\n[2] Buy food.\n[3] Back.");
                    int choiceContinueShopping = Program.ChoiceInput(0, 3);
                    while (choiceContinueShopping != 0)
                    {
                        if (choiceContinueShopping == 1)
                        {
                            ReserveTickets.ReserveTicketsMain(user);
                        }
                        else if (choiceContinueShopping == 2)
                        {
                            CostumerFoodOrder.Costumer(user);
                        }
                        else if (choiceContinueShopping == 3)
                        {
                            Shoppingcart.ShoppingcartNav(user);
                        }
                    }
                }
                else if (choice == 4)
                {
                    Navigation.CustomerNavigation(user);
                }
            }
        }