private void Window_Initialized(object sender, EventArgs e) { var scriptdebugout = new ScriptStream(_t_scriptdebugoutput); var scriptconsoleout = new ScriptStream(_t_scriptconsoleoutput); _scriptmanager.SetScriptRuntimeOutput(scriptdebugout, scriptconsoleout); _c_languages.SelectedIndex = 0; // select the first language Left = _parent.Left + ((_parent.Width - Width)/2); Top = _parent.Top + ((_parent.Height - Height)/3); }
public void SetScriptRuntimeOutput(ScriptStream scripterrorstream, ScriptStream scriptconsolestream) { _runtime.IO.SetOutput(scriptconsolestream, Encoding.UTF8); _runtime.IO.SetErrorOutput(scripterrorstream, Encoding.UTF8); }