Tanoda
|
Public Member Functions | |
UndoOffsetHolder (OffsetHolder target) | |
Hashtable | RecordState () |
void | ApplyState (Hashtable values) |
void | OnExitScope () |
Hashtable | RecordState () |
void | ApplyState (Hashtable values) |
void | OnExitScope () |
Public Attributes | |
OffsetHolder | target |
Definition at line 6 of file UndoOffsetHolder.cs.
GILES.UndoOffsetHolder.UndoOffsetHolder | ( | OffsetHolder | target | ) |
Definition at line 10 of file UndoOffsetHolder.cs.
void GILES.UndoOffsetHolder.ApplyState | ( | Hashtable | values | ) |
Apply the recorded state to the target object using the values stored by RecordState.
Implements GILES.IUndo.
Definition at line 27 of file UndoOffsetHolder.cs.
void GILES.UndoOffsetHolder.OnExitScope | ( | ) |
Called when a state is purged from the undo or redo stack. Commonly used by objects to release memory once no longer needed.
Implements GILES.IUndo.
Definition at line 36 of file UndoOffsetHolder.cs.
Hashtable GILES.UndoOffsetHolder.RecordState | ( | ) |
Record the current state of the target object. RecordState() should grab the current state of the object pointed to, not the current state as stored.
RecordState should return a hashtable that contains all the information necessary to reconstitute the object. How the data is stored is up to the implementation, since it is also left to the implementing class to reconstruct itself using this same information in ApplyState.
Implements GILES.IUndo.
Definition at line 15 of file UndoOffsetHolder.cs.
OffsetHolder GILES.UndoOffsetHolder.target |
Definition at line 8 of file UndoOffsetHolder.cs.