コード例 #1
0
        public Page1(Pokemon pokemon)
        {
            InitializeComponent();
            var pokedex = new Pokedex();
            var info    = pokedex.GetPokemonInfo(pokemon);

            name.Text    = info.Names.En;
            we.Text      = info.WeightEu;
            he.Text      = info.HeightEu;
            des.Text     = info.PokedexEntries.OmegaRuby.En;
            image.Source = ImageSource.FromUri(new Uri(pokemon.ImageUrl));
        }
コード例 #2
0
        public DetailPage(Pokemon _pokemon)
        {
            InitializeComponent();
            var pokedex = new Pokedex();
            var info    = pokedex.GetPokemonInfo(_pokemon);

            pokemon               = _pokemon;
            txtNameDetail.Text    = info.Names.En;
            txtHeightDetail.Text  = info.HeightEu;
            txtWeightDetail.Text  = info.WeightEu;
            txtPokemonDetail.Text = info.PokedexEntries.OmegaRuby.En;
            imgImageDetail.Source = ImageSource.FromUri(new Uri(_pokemon.ImageUrl));
        }
コード例 #3
0
        public DetailPage(Pokemon pokemon)
        {
            InitializeComponent();
            var pokedex = new Pokedex();
            var info    = pokedex.GetPokemonInfo(pokemon);

            imgDetail.Source    = pokemon.ImageUrl;
            lblNamePokemon.Text = pokemon.Name;
            lblWeight.Text      = info.WeightEu;
            lblHeight.Text      = info.HeightEu;
            lblDetail.Text      = info.PokedexEntries.OmegaRuby.En;
            this.Title          = "Info Pokemon";
            //var navigationPage = Application.Current.MainPage as NavigationPage;
            //navigationPage.BarBackgroundColor = Color.White;
            //navigationPage.BarTextColor = Color.Blue;
            //navigationPage.BarTextColor = Color.Blue;
            //navigationPage.bac
        }