public void Run()
        {
            bool keepRunning = true;
            int menuChoice = 0;

            while (keepRunning == true)
            {
                menuChoice = io.GetOptions("1.) Readall\n2.) Create 3.) Exit", 1, 3);
                switch (menuChoice)
                {
                    case 1:
                        this.ListAllPokemon();
                        break;
                    case 2:
                        CreatePokemon();
                        break;
                    case 3:
                        keepRunning = false;
                        break;
                    default:
                        break;
                }
                io.PrintMessagerClear("Please press Continue");

            }

            //// Read ALL
            //ListAllPokemon();
            //Console.ReadLine();
            //Console.Clear();

            //// Create

            //CreatePokemon();
            //// Read By Id

            //ReadPokemonById();

            ////Delete Pokemon
            //DeletePokemon();






        }
Пример #2
0
        public void Run()
        {
            bool keepRunning = true;
            int  menuChoice  = 0;

            while (keepRunning == true)
            {
                menuChoice = io.GetOptions("1.) Readall\n2.) Create \n3.) Buy Item \n4.) Exit", 1, 4);
                switch (menuChoice)
                {
                case 1:
                    this.ListAllCharacters();
                    break;

                case 2:
                    CreateCharacter();
                    break;

                case 3:
                    ShopItem();
                    break;

                case 4:
                    keepRunning = false;
                    break;

                default:
                    break;
                }
                io.PrintMessagerClear("Please press Continue");
            }

            //// Read ALL
            //ListAllCharacters();
            //Console.ReadLine();
            //Console.Clear();

            //// Create

            //CreateCharacter();
            //// Read By Id

            //ReadCharacterById();

            ////Delete Character
            //DeleteCharacter();
        }