/// <summary> /// Load the TaskControl list from cache /// </summary> private void PopulateTaskControlList() { for (int i = 0; i < taskListProvider.GetTimerTasks().taskList.Count; i++) { CreateTaskControl(taskListProvider.GetTimerTasks().taskList[i]); } }
public void SerializeData(JTTaskListProvider taskListProvider) { XmlSerializer ser = new XmlSerializer(typeof(JTTaskList)); TextWriter writer = new StreamWriter(xmlSerializedFileName); ser.Serialize(writer, taskListProvider.GetTimerTasks()); writer.Close(); }