private async void Button_Click(object sender, RoutedEventArgs e) { HaloAPIService api = new HaloAPIService(key); var enemies = await api.GetEnemies(); ListaInimigos.ItemsSource = enemies; //foreach (var match in matches.Results) //{ // textresult.Text += match.MatchDuration; // textresult.Text += Environment.NewLine; //} //foreach (var item in matches) //{ // textresult.Text += item.ToString(); //} }
private async void Button_Click(object sender, RoutedEventArgs e) { var enemies = await haloAPI.GetEnemies(); //foreach (var item in enemies) //{ // item.Description //} //ListaInimigos.ItemsSource = enemies; //foreach (var match in matches.Results) //{ // textresult.Text += match.MatchDuration; // textresult.Text += Environment.NewLine; //} //foreach (var item in matches) //{ // textresult.Text += item.ToString(); //} }
async void CarregarInimigos() { var inimigos = await haloAPI.GetEnemies(); ListaInimigos.ItemsSource = inimigos; }