Ejemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string result = host.runScript(JsInput.Text);

            JsOutput.Text = JsOutput.Text + "\n> " + JsInput.Text + "\n" + result;
            JsOutput.UpdateLayout();
            JsOutputScroll.ChangeView(null, double.MaxValue, null);
        }
Ejemplo n.º 2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     host.NKevaluateJavaScript(JsInput.Text).ContinueWith(task =>
     {
         JsOutput.Text = JsOutput.Text + "\n> " + JsInput.Text + "\n" + task.Result;
         JsOutput.UpdateLayout();
         JsOutputScroll.ChangeView(null, double.MaxValue, null);
     }, TaskScheduler.FromCurrentSynchronizationContext());
 }
Ejemplo n.º 3
0
 private void Log(string text)
 {
     JsConsole.Text += text + "\n";
     JsOutputScroll.ChangeView(null, double.MaxValue, null);
 }