Exemple #1
0
        private void BarGraphSystem()
        {
            _myMenu       = new Menu("Show Average of Reviews for Restaurants", "Dinner Spinner", "Top 10 Restaurants", "Back to Main Menu");
            _myMenu.Title = "Bar Graph Menu";

            bool running = true;

            while (running)
            {
                _myMenu.Display();

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

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

                    Console.ReadKey();
                }
                break;

                case 2:
                {
                    Console.Clear();

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

                    Console.ReadKey();
                }
                break;

                case 3:
                {
                    Console.Clear();

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

                    Console.ReadKey();
                }
                break;

                case 4:
                {
                    Selection();
                }
                break;
                }
            }
        }