Example #1
0
        public static void UncompleteTask(string listId, string taskSeriesId, string taskId)
        {
            try {
                rtm.TasksUncomplete(timeline, listId, taskSeriesId, taskId);
            } catch (RtmException e) {
                Log <RTM> .Debug(e.Message);

                return;
            }

            FinalizeAction(AddinManager.CurrentLocalizer.GetString("Task Uncompleted"),
                           AddinManager.CurrentLocalizer.GetString("The selected task has been marked as \"incomplete\"."));
        }
Example #2
0
 public void UpdateTaskActive(RtmTask task)
 {
     if (task.State == TaskState.Completed)
     {
         if (rtm != null)
         {
             try {
                 List list = rtm.TasksUncomplete(timeline, task.ListID, task.SeriesTaskID, task.TaskTaskID);
                 UpdateTaskFromResult(list);
             } catch (Exception e) {
                 Logger.Debug("Unable to set Task as completed: " + task.Name);
                 Logger.Debug(e.ToString());
             }
         }
     }
     else
     {
         UpdateTask(task);
     }
 }