Esempio n. 1
0
        public string Run()
        {
            _host.ClearOutput();
            var res = _host.Execute(this.Text);

            this.Output = _host.GetOutput();
            return(this.Output);
        }
Esempio n. 2
0
        private void RunScript()
        {
            ClearOutput();
            string script = this.Script;
            var    res    = _host.Execute(script);

            _output.Text = _host.GetOutput();
        }
Esempio n. 3
0
 private void RunScript()
 {
     try
     {
         _output.Text = null;
         _scriptHost.ClearOutput();
         _scriptHost.Execute(_script.Text);
         _output.Text = _scriptHost.GetOutput();
     }
     catch (Exception ex)
     {
         _output.Text = ex.ToString();
     }
 }