async public void OnRefresh(object sender, EventArgs e) { var tareasCollection = await manager.GetAll(); foreach (Tarea tarea in tareasCollection) { tareas.Add(tarea); } }
async private void Refresh() { var tareasCollection = await manager.GetAll(); tareas.Clear(); foreach (Tarea tarea in tareasCollection) { tareas.Add(tarea); } }
async private void Refresh() { var tareasCollection = await manager.GetAll(); foreach (Tarea tarea in tareasCollection) { if (tareas.All(t => t.Id != tarea.Id)) { tareas.Add(tarea); } } }
async public Task OnRefresh() { var tareasCollection = await manager.GetAll(); tareasList.ItemsSource = tareasCollection.OrderBy(item => item.Id).ToList(); }