Class CommandCollector
Executes IUndoCommands and collects them into a CompositeCommand allowing a combined undo later on.
Implements
Namespace: NanoByte.Common.Undo
Assembly: NanoByte.Common.dll
Syntax
public class CommandCollector : Object, ICommandExecutor
Constructors
CommandCollector()
Declaration
public CommandCollector()
Properties
Path
The path of the file the data structure being modified was loaded from. null
if none.
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
BuildComposite()
Creates a new CompositeCommand containing all IUndoCommands collected so far.
Declaration
public IUndoCommand BuildComposite()
Returns
Type | Description |
---|---|
IUndoCommand |
Execute(IUndoCommand)
Store an IUndoCommand for later execution.
Declaration
public void Execute(IUndoCommand command)
Parameters
Type | Name | Description |
---|---|---|
IUndoCommand | command | The command to be stored. |