/// <summary> ///初始化界面 /// </summary> private void InitialFrm() { _frmTemp.SysInfo = "获取系统功能插件中..."; _frmTemp.RefreshLable(); //从插件文件夹中获取插件接口对象 PluginHandle pluginHandle = new PluginHandle(Mod.m_PluginFolderPath); PluginCollection pluginCol = pluginHandle.GetPluginFromDLL(); //初始化主框架对象 Mod.v_AppForm = new Fan.Plugin.Application.AppForm(this, pluginCol); //分类解析、获取插件 m_MainPluginUI.IntialModuleCommon(Mod.m_LoginUser, pluginCol); //根据用户权限价值窗体 string strMessage = m_MainPluginUI.LoadForm(Mod.v_AppForm as Fan.Plugin.Application.IApplicationRef); if (!string.IsNullOrEmpty(strMessage)) { LogManage.WriteLog(strMessage); } SysLogInfoChangedEvent newEvent = new SysLogInfoChangedEvent("加载数据..."); SysLogInfoChnaged(null, newEvent); //根据XML加载插件界面 m_MainPluginUI.LoadData(Mod.v_AppForm as Fan.Plugin.Application.IApplicationRef); }