Click or drag to resize

ToolsExecuteWithProgressDialogT Method

Helper dialog to run long tasks while displaying progress.

Namespace: CTExtensions
Assembly: CTInterface (in CTInterface.dll) Version: 25.0
Syntax
public static T ExecuteWithProgressDialog<T>(
	bool bRunWithDialog,
	IWin32Window parent,
	string title,
	out Action<string> setMessage,
	string initialMessage,
	Func<T> func
)

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