NanoByte.Common
Public Member Functions | Properties | List of all members
NanoByte.Common.Undo.CommandCollector Class Reference

Executes IUndoCommands and collects them into a CompositeCommand allowing a combined undo later on. More...

Inheritance diagram for NanoByte.Common.Undo.CommandCollector:
NanoByte.Common.Undo.ICommandExecutor

Public Member Functions

void Execute (IUndoCommand command)
 Store an IUndoCommand for later execution. More...
 
IUndoCommand BuildComposite ()
 Creates a new CompositeCommand containing all IUndoCommands collected so far. More...
 

Properties

string Path [get, set]
 
- Properties inherited from NanoByte.Common.Undo.ICommandExecutor
string Path [get]
 The path of the file the data structure being modified was loaded from. null if none. More...
 

Detailed Description

Executes IUndoCommands and collects them into a CompositeCommand allowing a combined undo later on.

Member Function Documentation

◆ BuildComposite()

IUndoCommand NanoByte.Common.Undo.CommandCollector.BuildComposite ( )

Creates a new CompositeCommand containing all IUndoCommands collected so far.

◆ Execute()

void NanoByte.Common.Undo.CommandCollector.Execute ( IUndoCommand  command)
inline

Store an IUndoCommand for later execution.

Parameters
commandThe command to be stored.

Implements NanoByte.Common.Undo.ICommandExecutor.


The documentation for this class was generated from the following file: