C# 클래스 Illusion.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
파일 보기 프로젝트 열기: kasicass/kasicass 1 사용 예제들

공개 메소드들

메소드 설명
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.

EnumUndoableActions ( ) : IEnumerable

Enums the undoable actions.

GetEnumerator ( ) : IEnumerator
MoveBack ( ) : void

Moves the back.

MoveForward ( ) : void

Moves the forward.

SimpleHistory ( ) : System

Initializes a new instance of the SimpleHistory class.

보호된 메소드들

메소드 설명
RaiseUndoBufferChanged ( ) : void

Raises the undo buffer changed.

비공개 메소드들

메소드 설명
Init ( ) : void

Inits this instance.

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

EnumUndoableActions() 공개 메소드

Enums the undoable actions.
public EnumUndoableActions ( ) : IEnumerable
리턴 IEnumerable

GetEnumerator() 공개 메소드

public GetEnumerator ( ) : IEnumerator
리턴 IEnumerator

MoveBack() 공개 메소드

Moves the back.
public MoveBack ( ) : void
리턴 void

MoveForward() 공개 메소드

Moves the forward.
public MoveForward ( ) : void
리턴 void

RaiseUndoBufferChanged() 보호된 메소드

Raises the undo buffer changed.
protected RaiseUndoBufferChanged ( ) : void
리턴 void

SimpleHistory() 공개 메소드

Initializes a new instance of the SimpleHistory class.
public SimpleHistory ( ) : System
리턴 System