public void EndAndExecuteCompoundCommand() { if (this.currentCompoundCommand != null) { var oldCompoundCommand = this.currentCompoundCommand; this.currentCompoundCommand = null; if (oldCompoundCommand.SubCommandCount > 0) { this.RunCommand(oldCompoundCommand); } } }
public void BeginCompoundCommand <T>() where T : CompoundCommand, new() { this.currentCompoundCommand = new T(); }