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); }
private void SetCmdRunnerAction() { Runner = new Runners.CommandRunner(); }