Hi all, is this UI version working at all? I ask before I start getting into the source code and trying to find what may be happening. I just don't get any of the controls filled with the data (I tried the exact same code with TaskEditorDialog instead and it seems to work). Below is the code I'm using.
```
Using TS As New TaskService()
Dim aTaskEditDialog As TaskOptionsEditor
Dim aTaskDef As TaskDefinition = TS.NewTask
aTaskDef.XmlText = tbTaskDef.Text 'this can be blank, but usually have the XML from a TaskDefinition.XML
Dim aTaskOptionsEditor As TaskOptionsEditor = New TaskOptionsEditor(TS, aTaskDef, True, False)
aTaskEditDialog = New TaskOptionsEditor(TS, aTaskDef, True, False)
aTaskEditDialog.TaskFolder = "\" + TScourmanService.TASK_SCHEDULER_FOLDER
aTaskEditDialog.TaskName = PlugInDef.Name 'PlugInDef.Name is a string
'aTaskEditDialog.ReinitializeControls() 'not doing aything
If aTaskEditDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then
'aTaskEditDialog always appears empty, not even the task name shows
tbTaskDef.Text = FormatXML(aTaskEditDialog.TaskDefinition.XmlText)
End If
'remove the task we just added - we don't want this task registered in the client machine
TS.GetFolder("\" + TScourmanService.TASK_SCHEDULER_FOLDER).DeleteTask(PlugInDef.Name, False)
End Using
```
Comments: ** Comment from web user: MarcoAGarciaR **
```
Using TS As New TaskService()
Dim aTaskEditDialog As TaskOptionsEditor
Dim aTaskDef As TaskDefinition = TS.NewTask
aTaskDef.XmlText = tbTaskDef.Text 'this can be blank, but usually have the XML from a TaskDefinition.XML
Dim aTaskOptionsEditor As TaskOptionsEditor = New TaskOptionsEditor(TS, aTaskDef, True, False)
aTaskEditDialog = New TaskOptionsEditor(TS, aTaskDef, True, False)
aTaskEditDialog.TaskFolder = "\" + TScourmanService.TASK_SCHEDULER_FOLDER
aTaskEditDialog.TaskName = PlugInDef.Name 'PlugInDef.Name is a string
'aTaskEditDialog.ReinitializeControls() 'not doing aything
If aTaskEditDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then
'aTaskEditDialog always appears empty, not even the task name shows
tbTaskDef.Text = FormatXML(aTaskEditDialog.TaskDefinition.XmlText)
End If
'remove the task we just added - we don't want this task registered in the client machine
TS.GetFolder("\" + TScourmanService.TASK_SCHEDULER_FOLDER).DeleteTask(PlugInDef.Name, False)
End Using
```
Comments: ** Comment from web user: MarcoAGarciaR **
Hi Dahall, I'm not sure why, but I cannot test the code you send. If I replace the files with the corresponding ones you sent, I still get the same behavior. I found what seems to be another issue, this time using the TaskEditorDialog. In the checkbox "If the task is not scheduled to run again, delete it after:" is you set the time to, for example, 1 second or 30 minutes, it'll not update the task definition accordingly! This one is sort of s show stopper for me.