Example #1
0
        /// <summary>
        /// Executes a script file</summary>
        /// <param name="scriptPath">Script file path</param>
        /// <returns>Result of script file executing</returns>
        public string ExecuteScript(string scriptPath)
        {
            //Must execute on the main thread to avoid various errors
            FnExecute f = s_scriptingService.ExecuteFile;

            return((string)s_dispatcher.Invoke(f, scriptPath));
        }
Example #2
0
        /// <summary>
        /// Executes a single statement</summary>
        /// <param name="statement">Statement</param>
        /// <returns>Result of statement executing</returns>
        public string ExecuteStatement(string statement)
        {
            //Must execute on the main thread to avoid various errors
            FnExecute f = s_scriptingService.ExecuteStatement;

            return((string)s_dispatcher.Invoke(f, statement));
        }
Example #3
0
 /// <summary>
 /// Executes a script file</summary>
 /// <param name="scriptPath">Script file path</param>
 /// <returns>Result of script file executing</returns>
 public string ExecuteScript(string scriptPath)
 {
     //Must execute on the main thread to avoid various errors
     FnExecute f = new FnExecute(s_scriptingService.ExecuteFile);
     return (string)s_dispatcher.Invoke(f, scriptPath);
 }
Example #4
0
 /// <summary>
 /// Executes a single statement</summary>
 /// <param name="statement">Statement</param>
 /// <returns>Result of statement executing</returns>
 public string ExecuteStatement(string statement)
 {
     //Must execute on the main thread to avoid various errors
     FnExecute f = new FnExecute(s_scriptingService.ExecuteStatement);
     return (string)s_dispatcher.Invoke(f, statement);
 }