示例#1
0
        static public void AddTemp()
        {
            taskList.Add(TempTask);
            InsertionSort();

            AccessXML xml = new AccessXML();
            xml.Save(taskList);
        }
示例#2
0
        public static void Init()
        {
            taskList = new List<Task>();
			SelectedDay = DateTime.Today;
            SelectedMonth = DateTime.Today;

            AccessXML xml = new AccessXML();
            taskList = xml.Load();
            DummyValues();
        }
示例#3
0
 public static void Remove(Task task)
 {
     try
     {
         for (int x = 0; x < taskList.Count; x++)
             if (taskList[x].ID == task.ID)
             {
                 taskList.RemoveAt(x);
                 AccessXML xml = new AccessXML();
                 xml.Save(taskList);
                 break;
             }
     }
     catch { }
 }
示例#4
0
        static public void EditTemp()
        {
            if (SelectedPos != -1)
                taskList[SelectedPos] = TempTask;
            else return;
            SelectedPos = -1;
            TempTask = new Task();
            InsertionSort();

            AccessXML xml = new AccessXML();
            xml.Save(taskList);
        }