public void Run(String FilePath, String[] Parameters = null) { if (!File.Exists(FilePath)) { return; } ScriptInstance Instance = new ScriptInstance(FilePath, Parameters, this); Instance.Execute(); }
public void RunThreaded(String FilePath, String[] Parameters = null) { if (!File.Exists(FilePath)) { return; } Thread s = new Thread(new ThreadStart(() => { ScriptInstance Instance = new ScriptInstance((String)FilePath, (String[])Parameters, this); Instance.Execute(); })); s.Start(); }