Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
 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();
     }
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 public ConsoleRedirect(Console textBox, frmShell main)
 {
     this.main = main;
     outBox    = textBox;
 }
Exemplo n.º 6
0
        public void RedirectConsole(frmShell shl)
        {
            ConsoleRedirect Redirector = new ConsoleRedirect(this, shl);

            System.Console.SetOut(Redirector);
        }
Exemplo n.º 7
0
 public void RedirectConsole(frmShell shl)
 {
     ConsoleRedirect Redirector = new ConsoleRedirect(this, shl);
     System.Console.SetOut(Redirector);
 }
Exemplo n.º 8
0
 public ConsoleRedirect(Console textBox, frmShell main)
 {
     this.main = main;
     outBox = textBox;
 }