예제 #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.ClientsSection section = PublicMethods.Methods.ReadConfigFile_SectionGroup(configPath, GROUPNAME, SECTIONNAME) as Sections.ClientsSection;
            if (section != null)
            {
                strNameSpace = section.NameSpace; //命名空间
                strInstance  = section.Instance;  //实例
            }
        }
예제 #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.ClientsSection section = PublicMethods.Methods.ReadConfigFile_SectionGroup(configPath, GROUPNAME, SECTIONNAME) as Sections.ClientsSection;
            if (section != null)
            {
                strNameSpace = section.NameSpace;                                       //命名空间
                strInstance  = section.Instance;                                        //实例
                this._methodnm_GetDefaultClients   = section.GetDataClientsMethod;      //GetDefaultClients方法名
                this._methodnm_GetPageData         = section.GetPageDataMethod;
                this._methodnm_IsExist_clientsname = section.IsExist_clientsnameMethod; //IsExist_clientsname方法名
                this._methodnm_GetDataByID         = section.GetDataByIDMethod;         //GetDataByID方法名
            }
        }