Exemple #1
0
 public void CheckCreateScriptRunner()
 {
     if (ScriptInRun == null)
     {
         ScriptInRun = new ScriptRunner(Utils.GetScriptParserFromPath(FilePath));
         ScriptInRun.Begin();
     }
 }
Exemple #2
0
        public static ScriptRunner RunScript(ScriptParser scriptParser, object belongObject = null)
        {
            ScriptRunner runner = null;

            if (scriptParser != null)
            {
                runner = new ScriptRunner(scriptParser, belongObject);
                runner.Begin();
                _list.AddLast(runner);
            }
            return(runner);
        }