private void LoadTasks() { if (selectedList == null) { return; } int?prevTask = SelectedTask == null ? null : (int?)SelectedTask.TaskItemID; Workspace.API.LoadList(SelectedList.Data.TaskListID, tasks, prevTask); SelectedList.Update(); }