Execute

Namespace: Digi21.Tasks
Assembly: Digi21.DigiNG

Runs the task's action.

void Execute();

The Tasks pane calls this method when you double-click the task row. Each implementation determines the action. For example, TaskMessageBox displays a message box with the task description, and TaskGotoPoint moves the drawing window to coordinates.

In TaskBase, Execute is abstract: each derived class implements it.

If Execute throws an exception while handling the double-click, the Tasks pane catches it and displays the message from InnerException in a message box, or the exception's own message if InnerException is null. The exception does not propagate.