/// <summary>
 /// Task List Context
 /// </summary>
 public TaskListContext()
 {
     ITaskRepository iTaskRepository = new TaskRepository(new MvxWpfFileStore(), new AppSettings());
        LastAddedtTaskId = iTaskRepository.GetLastTaskId();
        AllTasks = new List<TaskItem>();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Clear exisitng tasks in file used by app
 /// </summary>
 private static void ClearExisitngTasks()
 {
     var tr = new TaskRepository(new MvxWpfFileStore(), new AppSettings());
     tr.SaveTasks(new List<TaskItem>()).GetAwaiter().GetResult();
 }