private void addDirectory(string directoryPath) { if (Directory.Exists(directoryPath)) { AddedPath path = PathHelpers.PathToAddedPath(directoryPath); ReversibleCommand command = PresentationCombiner.FS.Commands.CreateReversibleCommand( () => { addedPaths.Add(path); appSelection.Add(path); }, () => { addedPaths.Remove(path); appSelection.Remove(path); }); commandInvoker.InvokeCommand(command); } }
public Task InvokeCommand(string commandName) { var command = _commandResolver.Resolve(commandName) ?? _commandResolver.Resolve("undefined") !; return(_commandInvoker.InvokeCommand(command, _request)); }
public void IssueCommand(ICommand command) { _invoker.SetCommand(command); _invoker.InvokeCommand(); }