namespace Netron.Diagramming.Core {
///
/// CommandInfo is a class that is used as the
/// data type in the undo list and redo stack. It just stores
/// a reference to a command and an undo handler.
///
public class CommandInfo {
private ICommand mCommand;
private IUndoSupport mHandler;
///
/// Gets or sets the command.
///
/// The command.
public ICommand Command {
get { return mCommand; }
set { mCommand = value; }
}
///
/// The handler or parent of the undo command
///
public IUndoSupport Handler {
get { return mHandler; }
set { mHandler = value; }
}
///
/// Initializes a new instance of the class.
///
public CommandInfo() {
}
}
}