Exemplo n.º 1
0
 public void Optimize()
 {
     if (keep)
     {
         task.Enabled = false;
     }
     else
     {
         TaskSchedulerManager.DeleteTask(task.Path);
     }
 }
 public void DeleteTask()
 {
     CreateTestTasks("TestTask");
     Assert.IsTrue(TaskSchedulerManager.DeleteTask(@"TestTask"));
     Assert.IsFalse(TaskSchedulerManager.DeleteTask(@"TestTask"));
 }