예제 #1
0
        public static void SetURL(string listId, string taskSeriesId, string taskId, string url)
        {
            try {
                rtm.TasksSetUrl(timeline, listId, taskSeriesId, taskId, url);
            } catch (RtmException e) {
                Log <RTM> .Debug(e.Message);

                return;
            }

            if (!string.IsNullOrEmpty(url))
            {
                FinalizeAction(AddinManager.CurrentLocalizer.GetString("Task URL Set"),
                               AddinManager.CurrentLocalizer.GetString("The selected task has been assigned a URL."));
            }
            else
            {
                FinalizeAction(AddinManager.CurrentLocalizer.GetString("Task URL Reset"),
                               AddinManager.CurrentLocalizer.GetString("The URL for the selected task has been reset."));
            }
        }