private async void fillLista() { try { UseManager manager = new UseManager(); IEnumerable <fullServidor> result = await manager.listarServidores(); if (result != null) { txtServidor.ItemsSource = result.ToList(); Pickerlist = result.ToList(); Finallist = new List <fullServidor>(); foreach (var item in Pickerlist) { var exit = Finallist.Where(i => i.fullname == item.fullname).ToList(); if (exit.Count == 0) { Finallist.Add(item); } } //lstUsuarios.ItemsSource = result; } } catch (Exception e1) { await DisplayAlert("Error en Lista", "Servidor no listo Trate nuevamente", "Aceptar"); Console.WriteLine(e1.Message.ToString()); } }
private async void fillLista() { try { UseManager manager = new UseManager(); var result = await manager.listarServidores(); servidores = result; if (result != null) { lstUsuarios.ItemsSource = result; } }catch (Exception e1) { await DisplayAlert("Error en Lista", "Favor vuelva a cargar Servidor no listo", "Aceptar", "Cancelar"); Console.WriteLine(e1.Message.ToString()); } }