예제 #1
0
 public TaskManager()
 {
     taskQueue = new List<ScheduledTask>();
     _taskList = new List<ScheduledTask>();
     _taskHistory = new HistoryManager();
     _taskControllers = new List<ITaskController>();
 }
예제 #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            if(MessageBox.Show("Do you really want to remove all task history ?", "SecureDelete", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) {
                HistoryManager man = new HistoryManager();

                man.LoadHistory(SecureDeleteLocations.GetScheduleHistoryFile());
                man.Clear();
                man.SaveHistory(SecureDeleteLocations.GetScheduleHistoryFile());
            }
        }