public static void SetLocation(string listId, string taskSeriesId, string taskId, string locationId) { try { rtm.TasksSetLocation(timeline, listId, taskSeriesId, taskId, locationId); } catch (RtmException e) { Log <RTM> .Debug(e.Message); return; } if (string.IsNullOrEmpty(locationId)) { FinalizeAction(AddinManager.CurrentLocalizer.GetString("Location Reset"), AddinManager.CurrentLocalizer.GetString("The location of the selected task has been cleared.")); } else { FinalizeAction(AddinManager.CurrentLocalizer.GetString("Location changed"), AddinManager.CurrentLocalizer.GetString("The location of the selected task has been successfully changed.")); } }