Метод | Описание | |
---|---|---|
Batch ( System.Action codeBlock ) : void |
Marks a batch during which all events are combined so that Undo only needs calling once. Batches cannot be nested. At any point, there must be only one active batch. |
|
BeginBatch ( ) : void |
Explicitly marks the beginning of a batch. Use this instead of Batch changes can be made in different places instead of inside one certain block of code. When finish, end the batch by invoking EndBatch.
|
|
Dispose ( ) : void |
Disposes the this mementor and clears redo and undo stacks. This method won't fire Changed event.
|
|
EndBatch ( ) : void |
Ends a batch.
|
|
ExecuteNoTrack ( System.Action codeBlock ) : void |
Executes the supplied code block with IsTrackingEnabled turned off.
|
|
MarkEvent ( |
Marks an event. This method also serves as an extensibility point for custom events.
|
|
Mementor ( bool isEnabled = true ) : System |
Creates an instance of Mementor.
|
|
Redo ( ) : void |
Performs a redo.
|
|
Reset ( ) : void |
Resets the state of this Mementor object to its initial state. This effectively clears the redo stack, undo stack and current batch (if one is active).
|
|
Undo ( ) : void |
Performs an undo.
|
Метод | Описание | |
---|---|---|
InternalEndBatch ( BatchEvent stack ) : |
||
NotifyChange ( |
||
PerformPostMarkAction ( |
||
ProcessBatch ( BatchEvent batchEvent ) : |
||
RollbackEvent ( |
public Batch ( System.Action codeBlock ) : void | ||
codeBlock | System.Action | The code block performing batch change marking. |
Результат | void |
public ExecuteNoTrack ( System.Action codeBlock ) : void | ||
codeBlock | System.Action | The code block to be executed. |
Результат | void |
public MarkEvent ( |
||
anEvent | The event to be marked. | |
Результат | void |
public Mementor ( bool isEnabled = true ) : System | ||
isEnabled | bool | Whether this instance is enabled or not. |
Результат | System |