Manages executing ExplorerFramework.Commands.
If an executed Command is Cancelable, this Dialog will display its progress and enable the user to Cancel the Command while preventing the user from interacting with the Max scene. Non-cancelable Commands are executed directly, halting all other application execution.
Public Member Functions |
|
ProgressDialog () | |
Constructor. |
|
DialogResult | ExecuteCancelableCommand (Command command) |
Explicitly execute the given Command as a
Cancelable command. |
|
Static Public Member Functions |
|
static DialogResult | ExecuteCommand (Command command) |
Executes the given Command, displaying the
progress and cancel dialog only if the Command supports it.
|
|
Protected Member Functions |
|
override void | Dispose (bool disposing) |
Clean up any resources being used. |
|
Properties |
|
BackgroundCommandRunner |
BackgroundCommandRunner [get, set] |
Runs Cancelable Commands in a background
thread to maintain user interactivity. |
MaxCustomControls::ProgressDialog::ProgressDialog | ( | ) | [inline] |
Constructor.
DialogResult MaxCustomControls::ProgressDialog::ExecuteCancelableCommand | ( | Command | command | ) | [inline] |
Explicitly execute the given Command as a Cancelable command.
Shows this dialog to display progress and to allow the user to cancel the Command. Uses a modal form to prevent the user from modifying the scene during the Command's execution.
command | The Command to execute. |
static DialogResult MaxCustomControls::ProgressDialog::ExecuteCommand | ( | Command | command | ) | [inline, static] |
Executes the given Command, displaying the progress and cancel dialog only if the Command supports it.
If the given Command is Cancelable, this will create a ProgressDialog to display the Command's progress and allow the user to Cancel its execution. The ProgressDialog is modal to prevent the user from modifying the scene while the Command is running.
If the given Command is not Cancelable, no ProgressDialog is displayed. The Command is run in the main thread, stopping all other execution and disabling interactivity until the Command completes.
command | The commmand to Execute |
override void MaxCustomControls::ProgressDialog::Dispose | ( | bool | disposing | ) | [inline, protected] |
Clean up any resources being used.
disposing | true if managed resources should be disposed; otherwise, false. |
Reimplemented from MaxCustomControls::MaxForm.
BackgroundCommandRunner
MaxCustomControls::ProgressDialog::BackgroundCommandRunner
[get, set] |
Runs Cancelable Commands in a background thread to maintain user interactivity.