public override void Init() { xPlugin.Init(); //MethodInfo xMethod = xType.GetMethod("Init"); //if (xMethod != null) //{ // xMethod.Invoke(xPlugin, null); //} }
public NFCDynLib(string strLibName, NFIPluginManager xMng) { mstrLibName = strLibName; mstrPluginName = "NFrame." + mstrLibName.Substring(0, mstrLibName.LastIndexOf(".")); xAssembly = Assembly.LoadFrom(mstrLibName); xType = xAssembly.GetType(mstrPluginName); xPlugin = Activator.CreateInstance(xType) as NFIPlugin; xPlugin.SetMng(xMng); //xPlugin.Install(); xPlugin.Init(); xPlugin.AfterInit(); }
public NFCDynLib(string strLibName, NFIPluginManager xMng) { mstrLibName = strLibName; mstrPluginName = "NFrame." + mstrLibName.Substring(0, mstrLibName.LastIndexOf(".")); xAssembly = Assembly.LoadFrom(mstrLibName); xType = xAssembly.GetType(mstrPluginName); xPlugin = Activator.CreateInstance(xType) as NFIPlugin; xPlugin.SetMng(xMng); //xPlugin.Install(); xPlugin.Init(); xPlugin.AfterInit(); }