예제 #1
0
        public MainPage()
        {
            InitializeComponent();

            // Initialize the script engine.
            this.engine = new Jurassic.ScriptEngine();

            // Initialize silverlight console.
            this.console = new SilverlightConsoleOutput(this.HistoryTextBox);
            this.console.BeforeLog += new EventHandler(Console_BeforeLog);
            this.console.AfterLog += new EventHandler(Console_AfterLog);

            // Register the firebug console object.
            var consoleObject = new Jurassic.Library.FirebugConsole(engine);
            consoleObject.Output = this.console;
            engine.Global["console"] = consoleObject;
        }
예제 #2
0
        public MainPage()
        {
            InitializeComponent();

            // Initialize the script engine.
            this.engine = new Jurassic.ScriptEngine();

            // Initialize silverlight console.
            this.console            = new SilverlightConsoleOutput(this.HistoryTextBox);
            this.console.BeforeLog += new EventHandler(Console_BeforeLog);
            this.console.AfterLog  += new EventHandler(Console_AfterLog);

            // Register the firebug console object.
            var consoleObject = new Jurassic.Library.FirebugConsole(engine);

            consoleObject.Output     = this.console;
            engine.Global["console"] = consoleObject;
        }