private async void llenarComboCategoria() { comboCategoria.Items.Clear(); ServicioAEIClient servicioProducto = new ServicioAEIClient(); List<Categoria> listCategoria = await servicioProducto.BuscarTodasLasCategoriasAsync(); comboCategoria.Items.Add("Todas"); comboCategoria.SelectedIndex = 0; for (int categoria = 0; categoria < listCategoria.Count(); categoria++) { comboCategoria.Items.Add(listCategoria.ElementAt(categoria).Nombre); } }
private async void llenarComboCategoria() { comboCategoria.Items.Clear(); ServicioAEIClient servicioProducto = new ServicioAEIClient(); List <Categoria> listCategoria = await servicioProducto.BuscarTodasLasCategoriasAsync(); comboCategoria.Items.Add("Todas"); comboCategoria.SelectedIndex = 0; for (int categoria = 0; categoria < listCategoria.Count(); categoria++) { comboCategoria.Items.Add(listCategoria.ElementAt(categoria).Nombre); } }