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 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(); } }