public static Task<IGPResult> OpenToolDialogAsync( string toolPath, IEnumerable<string> values, IEnumerable<KeyValuePair<string,string>> environments, GPToolExecuteEventHandler callback, GPExecuteToolFlags executeFlags, GPToolDialogFlags dialogFlags, string dialogTitle )
Public Shared Function OpenToolDialogAsync( _ ByVal toolPath As String, _ Optional ByVal values As IEnumerable(Of String), _ Optional ByVal environments As IEnumerable(Of KeyValuePair(Of String,String)), _ Optional ByVal callback As GPToolExecuteEventHandler, _ Optional ByVal executeFlags As GPExecuteToolFlags, _ Optional ByVal dialogFlags As GPToolDialogFlags, _ Optional ByVal dialogTitle As String _ ) As Task(Of IGPResult)
Parameters
- toolPath
- Use toolboxalias.toolname, toolname_toolboxalias pattern or full path
- values
- Optional array of parameter values
- environments
- Optional array of environment settings (name,value)
- callback
- callback events are:
- OnBeginExecute - param = null. Can be sent miltiple times if user re-run the same tool
- OnEndExecute - param type IGPResult. Can be sent miltiple times if user re-run the same tool
- OnClose - param = null, send when user click back or open new tool in the same sub-pane
A Task of type IGPResult. See IGPResult for more information. - executeFlags
- executeFlags = GPExecuteToolFlags.Default (AddOutputsToMap | RefreshProjectItems) GPExecuteToolFlags
- dialogFlags
- dialogFlags = GPToolDialogFlags.DefaultGPToolDialogFlags
- dialogTitle
- set custom dialog title/>
Return Value
A Task of type IGPResult. See IGPResult for more information.