Example #1
0
        /// <summary>
        /// 读取配置文件
        /// </summary>
        /// <param name="strNameSpace">返回 命名空间字符串</param>
        /// <param name="strInstance">返回 实例字符串</param>
        void ReadConfigFile(ref string strNameSpace, ref string strInstance)
        {
            string configPath = Methods.CommonMethods.GetConfigPath();

            //读取配置文件的信息
            Sections.ProjectsTeamSection section = PublicMethods.Methods.ReadConfigFile_SectionGroup(configPath, GROUPNAME, SECTIONNAME) as Sections.ProjectsTeamSection;
            if (section != null)
            {
                strNameSpace = section.NameSpace; //命名空间
                strInstance  = section.Instance;  //实例
            }
        }
Example #2
0
        /// <summary>
        /// 读取配置文件
        /// </summary>
        /// <param name="strNameSpace">返回 命名空间字符串</param>
        /// <param name="strInstance">返回 实例字符串</param>
        void ReadConfigFile(ref string strNameSpace, ref string strInstance)
        {
            string configPath = Common.CommonMethods.GetConfigPath();

            //读取配置文件的信息
            Sections.ProjectsTeamSection section = PublicMethods.Methods.ReadConfigFile_SectionGroup(configPath, GROUPNAME, SECTIONNAME) as Sections.ProjectsTeamSection;
            if (section != null)
            {
                strNameSpace = section.NameSpace;                                          //命名空间
                strInstance  = section.Instance;                                           //实例
                this._methodnm_GetDefaultProjectsTeam = section.GetDataProjectsTeamMethod; //GetDefaultProjects方法名

                this._methodnm_GetPageData = section.GetPageDataMethod;
                this._methodnm_IsExist_projectsteamname = section.IsExist_projectsteamnameMethod; //IsExist_projectsname方法名
                this._methodnm_GetDataByID = section.GetDataByIDMethod;                           //GetDataByID方法名
            }
        }