Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 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;
            }
        }
Beispiel #4
0
 void Reset()
 {
     Tareas.Clear();
 }