Exemplo n.º 1
0
        public CommandViewModel()
        {
            Runner = new Runners.CommandRunner();

            CommandInputEnabled   = true;
            ProgressBarVisibility = Visibility.Collapsed;
            OutputVisibility      = Visibility.Collapsed;

            // Setup commands
            RunCommand          = new ActionCommand(RunAction);
            EscCommand          = new ActionCommand(Close);
            SetCmdRunnerCommand = new ActionCommand(SetCmdRunnerAction);
            SetPsRunnerCommand  = new ActionCommand(SetPsRunnerAction);
        }
Exemplo n.º 2
0
 private void SetCmdRunnerAction()
 {
     Runner = new Runners.CommandRunner();
 }