Exemple #1
0
 /// <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]);
     }
 }
Exemple #2
0
        public void SerializeData(JTTaskListProvider taskListProvider)
        {
            XmlSerializer ser    = new XmlSerializer(typeof(JTTaskList));
            TextWriter    writer = new StreamWriter(xmlSerializedFileName);

            ser.Serialize(writer, taskListProvider.GetTimerTasks());
            writer.Close();
        }