예제 #1
0
 public PokedexViewModel(IPokemonRegistry pokemonRegistry,
                         PokeTypeRegistry pokeTypeRegistry,
                         IPokePdfService pokePdfService)
 {
     this.pokemonRegistry  = pokemonRegistry;
     this.pokeTypeRegistry = pokeTypeRegistry;
     this.pokePdfService   = pokePdfService;
     LoadPokemonTask       = LoadAsync();
 }
예제 #2
0
 public PokedexViewModel(IPokemonRegistry pokemonRegistry,
                         PokeTypeRegistry pokeTypeRegistry,
                         IPokePdfService pokePdfService,
                         IPokemonExcelService pokemonExcelService)
 {
     this.pokemonRegistry     = pokemonRegistry;
     this.pokeTypeRegistry    = pokeTypeRegistry;
     this.pokePdfService      = pokePdfService;
     this.pokemonExcelService = pokemonExcelService;
     PokeTypeErrorVisibility  = Visibility.Hidden;
     LoadPokemonTask          = LoadAsync();
 }