Exemple #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.MenuSection section = PublicMethods.Methods.ReadConfigFile_SectionGroup(configPath, GROUPNAME, SECTIONNAME) as Sections.MenuSection;
            if (section != null)
            {
                strNameSpace = section.NameSpace; //命名空间
                strInstance  = section.Instance;  //实例
            }
        }
Exemple #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.MenuSection section = PublicMethods.Methods.ReadConfigFile_SectionGroup(configPath, GROUPNAME, SECTIONNAME) as Sections.MenuSection;
            if (section != null)
            {
                strNameSpace = section.NameSpace;                          //命名空间
                strInstance  = section.Instance;                           //实例
                this._methodnm_GetDefaultMenu = section.GetDataMenuMethod; //GetDefaultMenu方法名
            }
        }