示例#1
0
        public static void SetTaskPriority(string listId, string taskSeriesId, string taskId, string priority)
        {
            try {
                if (priority == "up" || priority == "down")
                {
                    rtm.TasksMovePriority(timeline, listId, taskSeriesId, taskId, priority);
                }
                else
                {
                    rtm.TasksSetPriority(timeline, listId, taskSeriesId, taskId, priority);
                }
            } catch (RtmException e) {
                Log <RTM> .Debug(e.Message);

                return;
            }

            FinalizeAction(AddinManager.CurrentLocalizer.GetString("Priority Changed"),
                           AddinManager.CurrentLocalizer.GetString("The priority of the selected task in your Remember The Milk task list has been changed."));
        }