Show / Hide Table of Contents

Class CommandInvoker

This class manages all commands that have been executed. It offers methods to undo and redo commands.

Inheritance
System.Object
CommandInvoker
Namespace: VRSketchingGeometry.Commands
Assembly: VRSketchingGeometry.dll
Syntax
public class CommandInvoker
Remarks

Original author: tterpi

Methods

ExecuteCommand(ICommand)

Execute a command and add it to the undo redo system.

Declaration
public bool ExecuteCommand(ICommand command)
Parameters
Type Name Description
ICommand command
Returns
Type Description
System.Boolean

False if the command was discarded because it was not executed successfully.

Redo()

Replay the last undone command.

Declaration
public void Redo()

Undo()

Reverse the command that was last executed.

Declaration
public void Undo()
In This Article
Back to top Generated by DocFX