public static ascx_Simple_Script_Editor onCompileExecuteOnce(this ascx_Simple_Script_Editor scriptEditor) { return((ascx_Simple_Script_Editor)scriptEditor.invokeOnThread( () => { scriptEditor.onCompilationOk = () => { scriptEditor.execute(); scriptEditor.onCompilationOk = null; }; return scriptEditor; })); }
public static ascx_Simple_Script_Editor execute_WaitFor_ExecutionComplete(this ascx_Simple_Script_Editor simpleScriptEditor, int maxWaitSeconds = 20) { simpleScriptEditor.execute(); return(simpleScriptEditor.waitFor_ExecutionComplete(maxWaitSeconds)); }