コード例 #1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog ofd    = new OpenFileDialog( );
            bool?          result = ofd.ShowDialog( );

            if (result == true)
            {
                string js = File.ReadAllText(ofd.FileName);
                BrowserCore.RunJavaSript(js);
            }
        }
コード例 #2
0
 private void button_Click(object sender, RoutedEventArgs e)
 {
     BrowserCore.RunJavaSript(JsCode.Text);
 }