Class SimpleCommand
Inheritance
SimpleCommand
Implements
Namespace: NanoByte.Common.Undo
Assembly: NanoByte.Common.dll
Syntax
public abstract class SimpleCommand : Object, IUndoCommand
Constructors
SimpleCommand()
Declaration
protected SimpleCommand()
Methods
Execute()
Performs the desired action.
Declaration
public void Execute()
OnExecute()
Template method to perform the desired action.
Declaration
protected abstract void OnExecute()
OnUndo()
Template method to undo the changes made by OnExecute().
Declaration
protected abstract void OnUndo()
Undo()
Undoes the changes made by Execute().
Declaration
public virtual void Undo()