Drawing3d documented Class Library

TaskCtrl Class

The class TaskCtrl is specially made for bigger interactive actions. He inherits from ActiveCtrl and has additionally two important parts: The taskhandling with StateBusy and Terminate
. The Undo-Redo-handling: Most of them is static. So CommitList, RedoListMaxCommitUnDoReDoLastCommit Only Commit are not static and the virtual Undo- and Redo-methods, which are called from the static ones.
The handling is easier as it seems to be.
1. You have to override GetUndoData and GetRedoData
2. Override UnDo and ReDo
3. You have to call "Commit" at several points in your code.
In GetUndoData you return the data that you need in Undo.
The correspondence is given by an id.

For a list of all members of this type, see TaskCtrl Members .

System.Object
   MNComponent
      Entity
         DrawCtrl
            ActiveCtrl
               TaskCtrl

[Visual Basic]
<Serializable> _
<Browsable(Browsable:=True)> _
<ToolboxItem(ToolboxItemType:=System.Drawing.Design.ToolboxItem, ToolboxItemTypeName:="System.Drawing.Design.ToolboxItem, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> _
<DefaultMember(MemberName:="Item")> _
Public Class TaskCtrl
    Inherits ActiveCtrl
[C#]
[Serializable]
[Browsable(Browsable=True)]
[ToolboxItem(ToolboxItemType=System.Drawing.Design.ToolboxItem, ToolboxItemTypeName="System.Drawing.Design.ToolboxItem, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DefaultMember(MemberName="Item")]
public class TaskCtrl : ActiveCtrl

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Requirements

Namespace: Drawing3d

Assembly: Drawing3d (in Drawing3d.dll)

See Also

TaskCtrl Members | Drawing3d Namespace