Exemple #1
0
        private void Selection()
        {
            _myMenu = new Menu("Convert Reviews From SQL to JSON", "Showcase our 5 Star Rating System", "Showcase our Animated Bar Graph Review System", "Play a Card Game", "Exit");
            bool running = true;

            while (running)
            {
                _myMenu.Display();

                int selection = Validation.IntVal("Enter Selection");
                switch (selection)
                {
                case 1:
                {
                    Console.Clear();

                    _data = new DataCon();
                    _data.ToJson();

                    Console.ReadKey();
                }
                break;

                case 2:
                {
                    Console.Clear();

                    FiveStarRating();

                    Console.ReadKey();
                }
                break;

                case 3:
                {
                    Console.Clear();

                    BarGraphSystem();

                    Console.ReadKey();
                }
                break;

                case 4:
                {
                    Console.Clear();

                    _data = new DataCon();
                    _data.Cardgame();

                    Console.ReadKey();
                }
                break;

                case 5:
                {
                    Environment.Exit(0);
                }
                break;
                }
            }
        }