public static void RenameList(string listId, string newListName) { if (IsProtectedList(newListName)) { Services.Notifications.Notify("Invalid List Name", "The provided new list name is reserved.", RTMIconPath); return; } try { rtm.ListsRename(timeline, listId, newListName); } catch (RtmException e) { Log <RTM> .Debug(e.Message); return; } FinalizeAction(AddinManager.CurrentLocalizer.GetString("Task List Renamed"), String.Format(AddinManager.CurrentLocalizer.GetString("The selected task list has been renamed to \"{0}\"."), newListName)); }