public static object invoke_Static(this TM_Proxy tmProxy, Type targetType, string staticMethod, params object[] invocationParameters) { if (tmProxy.isNull() || tmProxy.o2Proxy.isNull()) { return(null); } var type = targetType.FullName; var assemblyName = targetType.Assembly.name(); return(tmProxy.o2Proxy.staticInvocation(assemblyName, type, staticMethod, invocationParameters)); }
public static TBot_Brain tbot_Brain(this TM_Proxy tmProxy) { if (tmProxy.isNull()) { return(null); } var tbotBrain = tmProxy.invoke_Static <TBot_Brain>(typeof(TBot_Brain), "Create"); if (tmProxy.tbot_Brain_TBotScriptsFolder().folder_Not_Exists()) { var path_TBotScripts = tmProxy.apiCassini.webRoot().pathCombine("Tbot"); tmProxy.tbot_Brain_TBotScriptsFolder(path_TBotScripts); tmProxy.tbot_Brain_SetAvailableScripts(); } return(tbotBrain); }