Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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);
 }
Beispiel #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);
 }