Tanoda
GILES.Undo.UndoState Class Reference

Public Member Functions

 UndoState (IUndo target, string msg)
 
void Apply ()
 
override string ToString ()
 

Public Attributes

string message
 
IUndo target
 
Hashtable values
 

Detailed Description

Stores a summary of the action, the target (IUndo inheriting object), and a hashtable of values representing object state at time of undo snapshot.

Definition at line 20 of file Undo.cs.

Constructor & Destructor Documentation

◆ UndoState()

GILES.Undo.UndoState.UndoState ( IUndo  target,
string  msg 
)

Initialize a new UndoState object with an IUndo object and summary of the undo-able action.

Definition at line 34 of file Undo.cs.

Member Function Documentation

◆ Apply()

void GILES.Undo.UndoState.Apply ( )

Reverts the IUndo state by calling IUndo::ApplyState()

Definition at line 44 of file Undo.cs.

◆ ToString()

override string GILES.Undo.UndoState.ToString ( )

Returns the summary of this undo action.

Definition at line 52 of file Undo.cs.

Member Data Documentation

◆ message

string GILES.Undo.UndoState.message

Definition at line 23 of file Undo.cs.

◆ target

IUndo GILES.Undo.UndoState.target

Definition at line 26 of file Undo.cs.

◆ values

Hashtable GILES.Undo.UndoState.values

Definition at line 29 of file Undo.cs.


The documentation for this class was generated from the following file: