public string Run() { _host.ClearOutput(); var res = _host.Execute(this.Text); this.Output = _host.GetOutput(); return(this.Output); }
private void RunScript() { ClearOutput(); string script = this.Script; var res = _host.Execute(script); _output.Text = _host.GetOutput(); }
private void RunScript() { try { _output.Text = null; _scriptHost.ClearOutput(); _scriptHost.Execute(_script.Text); _output.Text = _scriptHost.GetOutput(); } catch (Exception ex) { _output.Text = ex.ToString(); } }