示例#1
0
        private void XAndUp()
        {
            _myMenu       = new Menu("Show the Best", "4 and Up", "3 and Up", "Show One Star", "Unrated", "Exit");
            _myMenu.Title = "X and Up Menu";

            bool running = true;

            while (running)
            {
                _myMenu.Display();

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

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

                    Console.ReadKey();
                }
                break;

                case 2:
                {
                    Console.Clear();

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

                    Console.ReadKey();
                }
                break;

                case 3:
                {
                    Console.Clear();

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

                    Console.ReadKey();
                }
                break;

                case 4:
                {
                    Console.Clear();

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

                    Console.ReadKey();
                }
                break;

                case 5:
                {
                    Console.Clear();

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

                    Console.ReadKey();
                }
                break;

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