Exemplo n.º 1
0
        static void MostrarPorPokebola(Pokebola pokebola)
        {
            LogicaBox box = new LogicaBox(LogicaPC.BoxSeleccionada);

            Pokemon[] pokemonPorPokebola = box.ObtenerPorPokebola(pokebola);

            if (!MenuMostrarPokemon.Mostrar(pokemonPorPokebola))
            {
                Menu.CambiarColor(ConsoleColor.Red);
                Console.WriteLine($"No hay pokemones capturados con la '{pokebola.ToString().ToLower()}' en esta box.");
            }

            Menu.EspereUnaTecla();
        }
        static void MostrarPorTipo(Tipo tipo)
        {
            LogicaBox box = new LogicaBox(LogicaPC.BoxSeleccionada);

            Pokemon[] pokemonPorTipo = box.ObtenerPorTipo(tipo);

            if (!MenuMostrarPokemon.Mostrar(pokemonPorTipo))
            {
                Menu.CambiarColor(ConsoleColor.Red);
                Console.WriteLine($"No hay pokemones capturados del tipo '{tipo}' en esta box.");
            }

            Menu.EspereUnaTecla();
        }