C# Класс 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. ====================================================================
Наследование: IActionHistory
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
RaiseUndoBufferChanged ( ) : void

Приватные методы

Метод Описание
Init ( ) : void
System ( ) : System.Collections.IEnumerator

Описание методов

AppendAction() публичный Метод

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.
Результат bool

Clear() публичный Метод

All existing Nodes and Actions are garbage collected.
public Clear ( ) : void
Результат void

EnumRedoableActions() публичный Метод

public EnumRedoableActions ( ) : IEnumerable
Результат IEnumerable

EnumUndoableActions() публичный Метод

public EnumUndoableActions ( ) : IEnumerable
Результат IEnumerable

GetEnumerator() публичный Метод

public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

MoveBack() публичный Метод

public MoveBack ( ) : void
Результат void

MoveForward() публичный Метод

public MoveForward ( ) : void
Результат void

RaiseUndoBufferChanged() защищенный Метод

protected RaiseUndoBufferChanged ( ) : void
Результат void

SimpleHistory() публичный Метод

public SimpleHistory ( ) : System
Результат System