Exemplo n.º 1
0
 /* Retrieves tasklists that are not deleted or hidden*/
 private void RetrieveVisibleLists()
 {
     foreach (Model.TaskList origTaskList in TaskLists.Where(l => !l.Deleted))
     {
         Model.TaskList visibleTaskList = Model.TaskList.Clone(origTaskList);
         visibleTaskList.Tasks = new ObservableCollection <Model.Task>(origTaskList.Tasks.Where(t => IsNotHiddenOrDeleted(t)));
         VisibleTaskLists.Add(visibleTaskList);
     }
 }
Exemplo n.º 2
0
        public void RefreshLists()
        {
            //fill lists with visible tasks (not hidden and not deleted)
            VisibleTaskLists.Clear();
            RetrieveVisibleLists();

            //fill lists with todays tasks
            TodaysTasks.Clear();
            RetrieveTodaysTasks();

            //fill list with overdue tasks
            OverdueTasks.Clear();
            RetrieveOverdueTasks();

            //fill list with not completed tasks
            NotCompletedTasks.Clear();
            RetrieveNotCompletedTasks();

            //fill list with completed tasks
            CompletedTasks.Clear();
            RetrieveCompletedTasks();
        }