C# Class Memento.BaseEvent

Must be implemented by all events.
Show file Open project: buunguyen/memento Class Usage Examples

Protected Methods

Method Description
Rollback ( ) : BaseEvent

Rollback this event. This method is executed with Mementor.IsTrackingEnabled off, so no change marking will be done during its execution.

Because undo and redo are symmetric, this method might return a "reverse event" which will be used to rollback the effect of the current method. This method must now, however, return an isntance of BatchEvent.

Method Details

Rollback() protected abstract method

Rollback this event. This method is executed with Mementor.IsTrackingEnabled off, so no change marking will be done during its execution.

Because undo and redo are symmetric, this method might return a "reverse event" which will be used to rollback the effect of the current method. This method must now, however, return an isntance of BatchEvent.

protected abstract Rollback ( ) : BaseEvent
return BaseEvent