Exemple #1
0
        //Methods

        private void FiveStarRating()
        {
            _myMenu       = new Menu("List Restaurants Alphebetically", "List Restaurants Reverse Aplphebetical", "Sort Restaurants From Best to Worst", "Sort Restaurants From Worst to Best", "Show Only X and Up", "Exit");
            _myMenu.Title = "Rating Menu";

            bool running = true;

            while (running)
            {
                _myMenu.Display();

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

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

                    Console.ReadKey();
                }
                break;

                case 2:
                {
                    Console.Clear();

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

                    Console.ReadKey();
                }
                break;

                case 3:
                {
                    Console.Clear();

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

                    Console.ReadKey();
                }
                break;

                case 4:
                {
                    Console.Clear();

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

                    Console.ReadKey();
                }
                break;

                case 5:
                {
                    Console.Clear();

                    XAndUp();
                }
                break;

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