NanoByte.Common
2.6.1
|
An undo command that automatically tracks when Execute and Undo can be called. More...
Public Member Functions | |
void | Execute () |
Performs the desired action. More... | |
virtual void | Undo () |
Undoes the changes made by Execute. More... | |
Protected Member Functions | |
abstract void | OnExecute () |
Template method to perform the desired action. More... | |
abstract void | OnUndo () |
Template method to undo the changes made by OnExecute. More... | |
|
inline |
Performs the desired action.
Implements NanoByte.Common.Undo.IUndoCommand.
|
protectedpure virtual |
Template method to perform the desired action.
Implemented in NanoByte.Common.Undo.SetValueCommand< T >, NanoByte.Common.Undo.SetLocalizableString, NanoByte.Common.Undo.SetInList< T >, NanoByte.Common.Undo.ReplaceInList< T >, NanoByte.Common.Undo.RemoveFromCollection< T >, NanoByte.Common.Undo.CompositeCommand, and NanoByte.Common.Undo.AddToCollection< T >.
|
protectedpure virtual |
Template method to undo the changes made by OnExecute.
Implemented in NanoByte.Common.Undo.SetValueCommand< T >, NanoByte.Common.Undo.SetLocalizableString, NanoByte.Common.Undo.SetInList< T >, NanoByte.Common.Undo.ReplaceInList< T >, NanoByte.Common.Undo.RemoveFromCollection< T >, NanoByte.Common.Undo.CompositeCommand, and NanoByte.Common.Undo.AddToCollection< T >.
|
inlinevirtual |
Undoes the changes made by Execute.
Implements NanoByte.Common.Undo.IUndoCommand.