Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        public Task InvokeCommand(string commandName)
        {
            var command = _commandResolver.Resolve(commandName) ?? _commandResolver.Resolve("undefined") !;

            return(_commandInvoker.InvokeCommand(command, _request));
        }
Beispiel #3
0
 public void IssueCommand(ICommand command)
 {
     _invoker.SetCommand(command);
     _invoker.InvokeCommand();
 }