private void LoadAllViewModels()
 {
     pokemonsViewModel         = new PokemonsViewModel(businessManager.GetAllPokemons());
     stadesViewModel           = new StadesViewModel(businessManager.GetAllStades());
     caracteristiquesViewModel = new CaracteristiquesViewModel(businessManager.GetAllCaracteristiques());
     bonusViewModel            = new PokemonsViewModel(businessManager.GetAllPokemonsByType(ETypeElement.Dragon));
 }
示例#2
0
        public App()
        {
            PokemonsViewModel = new PokemonsViewModel();

                        #if USE_XAML
            MainPage = new NavigationPage(new PokemonListXamlPage());
                        #else
            MainPage = new NavigationPage(new PokemonListPage());
                        #endif
        }
示例#3
0
 public PokemonsPage(string url)
 {
     InitializeComponent();
     BindingContext = new PokemonsViewModel(url);
 }