PowerShellEngine createPowerShellEngine() { var psEngine = new PowerShellEngine(this); psEngine.ExecDone += onExecDone; psEngine.ExitRequested += (s, e) => Dispatcher.BeginInvoke(new Action(exit)); return psEngine; }
public TerminalTextArea() { psEngine = createPowerShellEngine(); Unloaded += (s, e) => terminateExec(); }