C# Class GuiLabs.Undo.SimpleHistory

IActionHistory represents a recorded list of actions undertaken by user. This class implements a usual, linear action sequence. You can move back and forth changing the state of the respective document. When you move forward, you execute a respective action, when you move backward, you Undo it (UnExecute). Implemented through a double linked-list of SimpleHistoryNode objects. ====================================================================
Inheritance: IActionHistory
Afficher le fichier Open project: KirillOsenkov/Undo Class Usage Examples

Méthodes publiques

Méthode Description
AppendAction ( IAction newAction ) : bool

Adds a new action to the tail after current state. If there exist more actions after this, they're lost (Garbage Collected). This is the only method of this class that actually modifies the linked-list.

Clear ( ) : void

All existing Nodes and Actions are garbage collected.

EnumRedoableActions ( ) : IEnumerable
EnumUndoableActions ( ) : IEnumerable
GetEnumerator ( ) : IEnumerator
MoveBack ( ) : void
MoveForward ( ) : void
SimpleHistory ( ) : System

Méthodes protégées

Méthode Description
RaiseUndoBufferChanged ( ) : void

Private Methods

Méthode Description
Init ( ) : void
System ( ) : System.Collections.IEnumerator

Method Details

AppendAction() public méthode

Adds a new action to the tail after current state. If there exist more actions after this, they're lost (Garbage Collected). This is the only method of this class that actually modifies the linked-list.
public AppendAction ( IAction newAction ) : bool
newAction IAction Action to be added.
Résultat bool

Clear() public méthode

All existing Nodes and Actions are garbage collected.
public Clear ( ) : void
Résultat void

EnumRedoableActions() public méthode

public EnumRedoableActions ( ) : IEnumerable
Résultat IEnumerable

EnumUndoableActions() public méthode

public EnumUndoableActions ( ) : IEnumerable
Résultat IEnumerable

GetEnumerator() public méthode

public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

MoveBack() public méthode

public MoveBack ( ) : void
Résultat void

MoveForward() public méthode

public MoveForward ( ) : void
Résultat void

RaiseUndoBufferChanged() protected méthode

protected RaiseUndoBufferChanged ( ) : void
Résultat void

SimpleHistory() public méthode

public SimpleHistory ( ) : System
Résultat System