예제 #1
0
 public void SaveTask()
 {
     context.Fetch();              // re-populates with updated values
     currentTask.Name  = taskDialog.Name;
     currentTask.Notes = taskDialog.Notes;
     currentTask.Done  = taskDialog.Done;
     BL.Managers.TaskManager.SaveTask(currentTask);
     NavigationController.PopViewControllerAnimated(true);
     context.Dispose();              // per documentation
 }
예제 #2
0
 public void SaveTask()
 {
     context.Fetch();              // re-populates with updated values
     currentTask.Name  = taskDialog.Name;
     currentTask.Notes = taskDialog.Notes;
     currentTask.Done  = taskDialog.Done;
     AppDelegate.Current.TaskMgr.SaveTodo(currentTask);
     NavigationController.PopViewController(true);
     context.Dispose();              // per documentation
 }