Here is how I am trying to convert it, still gives me a Null error:
TaskService ts = new TaskService(txtServerName.Text, logon[1], logon[0], logon[2], true);
EditorForm.TaskDefinition.Settings.Compatibility = TaskCompatibility.V1;
TaskSchedulerWizard tempEditorForm = new TaskSchedulerWizard(ts, EditorForm.TaskDefinition, false);