public void UpdateTaskName(RtmTask task) { if (rtm != null) { try { List list = rtm.TasksSetName(timeline, task.ListID, task.SeriesTaskID, task.TaskTaskID, task.Name); UpdateTaskFromResult(list); } catch (Exception e) { Logger.Debug("Unable to set name on task: " + task.Name); Logger.Debug(e.ToString()); } } }
public static void RenameTask(string listId, string taskSeriesId, string taskId, string newName) { try { rtm.TasksSetName(timeline, listId, taskSeriesId, taskId, newName); } catch (RtmException e) { Log <RTM> .Debug(e.Message); return; } FinalizeAction(AddinManager.CurrentLocalizer.GetString("Task Renamed"), String.Format(AddinManager.CurrentLocalizer.GetString("The selected task has been renamed to \"{0}\"."), newName)); }