Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: create a task using UI

$
0
0

You can use either the TaskEditDialog or TaskSchedulerWizard and then just initialize them or construct them with just a TaskService instance. If you wish to register the task (make it effective on the system) you will need to set the RegisterTaskOnAccept property to true.

// Get the service on the local machineusing (TaskService ts = new TaskService())
{// Setup editor so that it will create a new task definition,// make it editable, and register it when user clicks Ok
   TaskEditDialog editorForm = new TaskEditDialog(ts);if (editorForm.ShowDialog() == DialogResult.OK)
   {// The editorForm.TaskDefinition now contains all the// information the user input into the form.
   }
}

 



Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>