コード例 #1
0
        public static void ManagerNavigation()
        {
            //navigation system for the manager with all its options.
            Console.WriteLine("\nPlease pick a option.\n[1] Look at sale data.\n[2] Input sale data.\n[3] See all reservations.\n[4] Look at the expected amount of customers.\n[0] Exit application.");
            int choice = Program.ChoiceInput(0, 4);

            while (choice != 0)
            {
                if (choice == 1)
                {
                    //show sale data
                    SaleData.ShowSaleData();
                }
                else if (choice == 2)
                {
                    //input sale data
                    SaleData.SaleDatainput();
                }
                else if (choice == 3)
                {
                    //see all reservations
                    Reservations.ReservationMain();
                }
                else if (choice == 4)
                {
                    //look at expected customers
                    expected.ExpectedCustomers();
                }
                Console.WriteLine("\nPlease pick a option.\n[1] Look at sale data.\n[2] Input sale data.\n[3] See all reservations.\n[4] Look at the expected amount of customers.\n[0] Exit application.");
                choice = Program.ChoiceInput(0, 4);
            }
            //see al reservations
            Environment.Exit(0);
        }
コード例 #2
0
        //navigation system for the owner with all its options.
        public static void OwnerNavigation()
        {
            Console.WriteLine("\nPlease pick a option.\n[1] Look at sale data.\n[2] Adjust seat prices.\n[3] Show all movies.\n[4] Add, edit or remove Films\n[5] Show all upcoming movies.\n[6] Add, edit or remove upcoming Films\n[7] See all Reservations.\n[8] Look at the expected amount of customers.\n[9] Go to the comments / reviews.\n[0] Exit application.");
            int choice = Program.ChoiceInput(0, 9);

            while (choice != 0)
            {
                if (choice == 1)
                {
                    //look at sale data
                    SaleData.ShowSaleData();
                }
                else if (choice == 2)
                {
                    //adjust seat prices
                    Rooms.Manager();
                }
                else if (choice == 3)
                {
                    //show all movies
                    Console.WriteLine("\n" + File.ReadAllText(@"filmlist.txt"));
                }
                else if (choice == 4)
                {
                    //add, edit or remove films
                    Films.FilmMain();
                }
                else if (choice == 5)
                {
                    Console.WriteLine("\n" + File.ReadAllText(@"futurefilm.txt"));
                }
                else if (choice == 6)
                {
                    //add, edit or remove Future films
                    FutureFilm.FutureMain();
                }
                else if (choice == 7)
                {
                    //see all reservations
                    Reservations.ShowReservations();
                }
                else if (choice == 8)
                {
                    //look at expected customers
                    expected.ExpectedCustomers();
                }
                else if (choice == 9)
                {
                    //go to the comments / revies
                    OwnerComment.CoMaMain();
                }
                Console.WriteLine("\nPlease pick a option.\n[1] Look at sale data.\n[2] Adjust seat prices.\n[3] Show all movies.\n[4] Add, edit or remove Films\n[5] Show all upcoming movies.\n[6] Add, edit or remove upcoming Films\n[7] See all Reservations.\n[8] Look at the expected amount of customers.\n[9] Go to the comments.\n[0] Exit application.");
                choice = Program.ChoiceInput(0, 9);
            }
            Environment.Exit(0);
        }