Quantcast
Viewing all articles
Browse latest Browse all 2206

New Post: TaskOptionsEditor

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


Viewing all articles
Browse latest Browse all 2206

Trending Articles



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