private bool InitExecutor() { executor = new ScriptExecutor(); executor.OnStateChanged += OnScriptStateChanged; if(executor.CreateRunspace() == false) { return false; } executor.BridgeList = GetBridgeObjectList(); return true; }
public PowerShellScriptEditor() { InitializeComponent(); scriptExecutor = new ScriptExecutor(); executorInitialized = new ManualResetEvent(false); }
public bool EndStart() { if(executor != null) { exitEvent.WaitOne(); executor.DestroyRunspace(); executor = null; } return sucessfull; }