private void IsCompletedCheckedChanged(TaskListDisplayItem taskListDisplayItem) { // TODO: sync these methods to be the same functionality as ViewTaskDetailsPage // I think I meant re: loading progress which is missing here - both ways currently call the task list manager bool a = _taskListManager.UpdateTaskCompletedState(taskListDisplayItem.Id, taskListDisplayItem.IsComplete); // Updating task completion sets InProgress to false, so reflect this on the model taskListDisplayItem.InProgress = false; }
private void IsCompletedCheckedChanged(TaskListDisplayItem taskListDisplayItem) { bool completionUpdate = GetDependency <TaskListManager>().UpdateTaskCompletedState(TaskGuid, IsComplete); if (completionUpdate == true) { // Updating task completion sets InProgress to false, so reflect this on the model InProgress = false; } else { // TODO: test to make sure this correctly works and returns InProgress back to its previous state by inverting the new state // (just bodge the method to return false 50% of the time or something IsComplete = !IsComplete; } }