예제 #1
0
파일: HTMLView.cs 프로젝트: ed2014/ApsimX
        public void ExecJavaScript(string command, object[] args)
        {
            string argString = "";
            bool   first     = true;

            foreach (object obj in args)
            {
                if (!first)
                {
                    argString += ", ";
                }
                first      = false;
                argString += obj.ToString();
            }
            wb.ExecuteScript(command + "(" + argString + ")");
        }
예제 #2
0
 public void ExecuteScript(string s)
 {
     webview.ExecuteScript(s);
 }
예제 #3
0
 private void OpenUrl(string uri)
 {
     Hyena.Log.DebugFormat("Opening {0}", uri);
     //Open (uri);
     view.ExecuteScript(String.Format("document.location = \"{0}\";", uri));
 }