/// <summary> /// 读取配置文件 /// </summary> /// <param name="strNameSpace">返回 命名空间字符串</param> /// <param name="strInstance">返回 实例字符串</param> void ReadConfigFile(ref string strNameSpace, ref string strInstance) { string configPath = Methods.CommonMethods.GetConfigPath(); //读取配置文件的信息 Sections.ProjectsSection section = PublicMethods.Methods.ReadConfigFile_SectionGroup(configPath, GROUPNAME, SECTIONNAME) as Sections.ProjectsSection; if (section != null) { strNameSpace = section.NameSpace; //命名空间 strInstance = section.Instance; //实例 } }
/// <summary> /// 读取配置文件 /// </summary> /// <param name="strNameSpace">返回 命名空间字符串</param> /// <param name="strInstance">返回 实例字符串</param> void ReadConfigFile(ref string strNameSpace, ref string strInstance) { string configPath = Common.CommonMethods.GetConfigPath(); //读取配置文件的信息 Sections.ProjectsSection section = PublicMethods.Methods.ReadConfigFile_SectionGroup(configPath, GROUPNAME, SECTIONNAME) as Sections.ProjectsSection; if (section != null) { strNameSpace = section.NameSpace; //命名空间 strInstance = section.Instance; //实例 this._methodnm_GetDefaultProjects = section.GetDataProjectsMethod; //GetDefaultProjects方法名 this._methodnm_GetPageData = section.GetPageDataMethod; this._methodnm_IsExist_projectsname = section.IsExist_projectsnameMethod; //IsExist_projectsname方法名 this._methodnm_GetDataByID = section.GetDataByIDMethod; //GetDataByID方法名 } }