void Save()
        {
            task.Name  = nameTextEdit.Text;
            task.Notes = notesTextEdit.Text;
            //TODO:
            task.Done = doneCheckbox.Checked;

            TaskyApp.Current.TodoManager.SaveTask(task);
            Analytics.TrackEvent("Saved new TodoItem", AnalyticsHelper.ConstructProperties(task));
            Finish();
        }
Beispiel #2
0
 public void SaveTask()
 {
     context.Fetch();              // re-populates with updated values
     currentItem.Name  = taskDialog.Name;
     currentItem.Notes = taskDialog.Notes;
     // TODO: show the completion status in the UI
     currentItem.Done = taskDialog.Done;
     AppDelegate.Current.TodoManager.SaveTask(currentItem);
     Analytics.TrackEvent("Saved new TodoItem", AnalyticsHelper.ConstructProperties(currentItem));
     NavigationController.PopViewController(true);
 }