Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 2.92 KB

IUnDoManager.md

File metadata and controls

32 lines (25 loc) · 2.92 KB

IUnDoManager Interface

Provides properties and methods of the command pattern to execute operations and return to a previous state by undoing them.

public interface IUnDoManager :
System.ComponentModel.INotifyPropertyChanged

Derived
UnDoManager

Implements System.ComponentModel.INotifyPropertyChanged

Properties
CanRedo Returns a boolean to express if the method Redo() can be executed.
CanUndo Returns a boolean to express if the method Undo() can be executed.
RedoDescriptions Gets the descriptions in order of all the IUnDo which can be redone.
UndoDescriptions Gets the descriptions in order of all the IUnDo which can be undone.
Version Gets an System.Int32 representing the state of the IUnDoManager.
Methods
BeginTransaction(object) Starts a group of operation and return an IUnDoTransaction to stop the group.
If Commit() is not called, all operations done during the transaction will be undone on System.IDisposable.Dispose.
Clear() Clears the history of IUnDo operations.
Do(IUnDo) Executes the IUnDo command and stores it in the manager hostory.
Redo() Redoes the last undone IUnDo command of the manager history.
Undo() Undoes the last executed IUnDo command of the manager history.