async Task ExecuteLoadItemsCommand() { if (IsBusy) { return; } IsBusy = true; try { Tareas.Clear(); var items = await DataStore.GetItemsAsync(true); foreach (var item in items) { Tareas.Add(item); } } catch (Exception ex) { Debug.WriteLine(ex); } finally { IsBusy = false; } }
public void Clear() { Tareas.Clear(); ListasHerencia.Clear(); TareasOcultas.Clear(); TareasHechas.Clear(); }
async Task ExecuteLoadTareasCommand() { IsBusy = true; try { Tareas.Clear(); var data = await App.Database.GetTareasAsync(); foreach (var i in data) { Tareas.Add(i); } } catch (Exception ex) { Debug.WriteLine(ex); } finally { IsBusy = false; } }
void Reset() { Tareas.Clear(); }