CompoundEdit

StockSharp.Xaml.Diagram.GXDiagram.Model.UndoManager

This class is used to hold a list of ModelChangedEventArgs that should be undone or redone all together because it represents the side-effects of a single logical operation, including user-driven events.

Implements: IUndoableEdit

Constructors

CompoundEdit()

Construct an empty list of edits.

Properties

Edits : IList<IUndoableEdit>

Gets a list of all the IUndoableEdits in this compound edit.

IsComplete : bool

Gets or sets whether we can add more undoable edits to this compound edit.

Name : string

Gets or sets a name for this group of edits.

Methods

CanRedo() : bool

This predicate returns true if you can call Redo-- namely when IsComplete is true.

CanUndo() : bool

This predicate returns true if you can call Undo-- namely when IsComplete is true.

Clear()

Clear all of the IUndoableEdits and forget all references to them.

Redo()

Redo all of the IUndoableEdits, in forwards order.

ToString() : string

For debugging.

Undo()

Undo all of the IUndoableEdits, in reverse order.