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)); }
public App() { PokemonsViewModel = new PokemonsViewModel(); #if USE_XAML MainPage = new NavigationPage(new PokemonListXamlPage()); #else MainPage = new NavigationPage(new PokemonListPage()); #endif }
public PokemonsPage(string url) { InitializeComponent(); BindingContext = new PokemonsViewModel(url); }