public void InitHost(bool Shell, string version, WorldMap worldmap, PictureBox pctWorldMap) { Scripting.Host.ScriptGlobal.Init(Scripting.Host.ScriptHost, worldmap, pctWorldMap); Scripting.Host.ScriptHost.resources_loaded(); if (Shell) { frmShell shell = new frmShell(version, false); Scripting.Host.ScriptHost.RegisterConsole(shell.GetConsole()); shell.Show(); } }
public DebugManager(string version) { frmShell Debug = new frmShell(version, true); Debug.Show(); Debug.Text = "Debug"; var csl = Debug.GetConsole(); csl.ForeColor = Color.Orange; csl.ReadOnly = true; csl.WordWrap = true; Debug.GetConsole().RedirectConsole(Debug); }
public ConsoleRedirect(Console textBox, frmShell main) { this.main = main; outBox = textBox; }
public void RedirectConsole(frmShell shl) { ConsoleRedirect Redirector = new ConsoleRedirect(this, shl); System.Console.SetOut(Redirector); }