예제 #1
0
 public void MoveTaskCategory(RtmTask task, string id)
 {
     if (rtm != null)
     {
         try {
             List list = rtm.TasksMoveTo(timeline, task.ListID, id, task.SeriesTaskID, task.TaskTaskID);
             UpdateTaskFromResult(list);
         } catch (Exception e) {
             Logger.Debug("Unable to set Task as completed: " + task.Name);
             Logger.Debug(e.ToString());
         }
     }
 }
예제 #2
0
        public static void MoveTask(string fromListId, string toListId, string taskSeriesId, string taskId)
        {
            try {
                rtm.TasksMoveTo(timeline, fromListId, toListId, taskSeriesId, taskId);
            } catch (RtmException e) {
                Log <RTM> .Debug(e.Message);

                return;
            }

            FinalizeAction(AddinManager.CurrentLocalizer.GetString("Task Moved"),
                           AddinManager.CurrentLocalizer.GetString(String.Format("The selected task has been moved from Remember The Milk list \"{0}\" to list \"{1}\".",
                                                                                 lists.Find(i => (i as RTMListItem).Id == fromListId).Name,
                                                                                 lists.Find(i => (i as RTMListItem).Id == toListId).Name)));
        }