Esempio n. 1
0
        public static void Main()
        {
            Console.ForegroundColor = ConsoleColor.White;

            Console.WriteLine("BNU CO453 Applications Programming 2020-2021!");
            Console.WriteLine("    Vincent Assolutissimamente 21905331");

            string[] choices  = { "Distance Converter", "BMI Calculator", "Student Grades", "Social Network", "RPG Game", "RockScissors", "Quit" };
            bool     finished = false;

            do
            {
                Console.WriteLine();
                Console.Beep();
                Console.WriteLine("What would you like to do next?");
                Console.WriteLine("");

                switch (ConsoleHelper.SelectChoice(choices))
                {
                case 1:
                {
                    DistanceConverter converter = new DistanceConverter();
                    ConsoleHelper.OutputHeading("Distance Converter");
                    converter.Convert();
                    break;
                }

                case 2:
                {
                    BMICalculator bmi = new BMICalculator();
                    ConsoleHelper.OutputHeading("BMI Calculator");
                    bmi.CalculateBMI();
                    break;
                }

                case 3:
                {
                    StudentGrades studentGrades = new StudentGrades();
                    ConsoleHelper.OutputHeading("Student Grades");
                    studentGrades.Main();
                    break;
                }

                case 4:
                {
                    NetworkApp app04 = new NetworkApp();
                    app04.DisplayMenu();
                    break;
                }

                case 5:     //RPG Game
                    break;

                case 6: GameImager Imager = new GameImager();
                    Imager.Menu();
                    break;

                case 7:
                    Console.WriteLine("Thank you and Goodbye!");
                    finished = true;
                    break;
                }
            } while (!finished);
        }