 | ToolsExecuteWithProgressDialogT Method |
Helper dialog to run long tasks while displaying progress.
Namespace: CTExtensionsAssembly: CTInterface (in CTInterface.dll) Version: 25.0
Syntaxpublic static T ExecuteWithProgressDialog<T>(
bool bRunWithDialog,
IWin32Window parent,
string title,
out Action<string> setMessage,
string initialMessage,
Func<T> func
)
Public Shared Function ExecuteWithProgressDialog(Of T) (
bRunWithDialog As Boolean,
parent As IWin32Window,
title As String,
<OutAttribute> ByRef setMessage As Action(Of String),
initialMessage As String,
func As Func(Of T)
) As T
Parameters
- bRunWithDialog Boolean
- True to actually run with dialog; false to run directly.
- parent IWin32Window
- Parent window
- title String
- Title for the window
- setMessage ActionString
- Action allowing you to set progress message within func.
- initialMessage String
- Initial message to show
- func FuncT
- Your routine goes here. Use setMessage to update progress message as you proceed.
Type Parameters
- T
- Return type of your function. If it doesn't have to return, just return true and ignore the result of this function.
Return Value
T
See Also