C# Class NanoByte.Common.Undo.PreExecutedCompositeCommand

Combines multiple already executed IUndoCommands into a single atomic transaction.
Inheritance: PreExecutedCommand
Mostrar archivo Open project: nano-byte/common Class Usage Examples

Public Methods

Method Description
PreExecutedCompositeCommand ( [ commands ) : System

Creates a new composite command.

Protected Methods

Method Description
OnRedo ( ) : void

Executes all the contained IUndoCommands in order.

OnUndo ( ) : void

Undoes all the contained IUndoCommands in reverse order.

Method Details

OnRedo() protected method

Executes all the contained IUndoCommands in order.
protected OnRedo ( ) : void
return void

OnUndo() protected method

Undoes all the contained IUndoCommands in reverse order.
protected OnUndo ( ) : void
return void

PreExecutedCompositeCommand() public method

Creates a new composite command.
public PreExecutedCompositeCommand ( [ commands ) : System
commands [ The commands to be contained inside the transaction.
return System