Пример #1
0
        // 获取相关配置
        // eType    :配置类型
        public BaseCfg GetCfg(CFG_TYPE eType)
        {
            BaseCfg bc = null;

            if (dictCfg.TryGetValue(eType, out bc))
            {
                return(bc);
            }

            return(null);
        }
Пример #2
0
        public bool AddCfg(CFG_TYPE eType, string _fileName)
        {
            BaseCfg cfg = new BaseCfg();

            if (cfg.Init(_fileName) == true)
            {
                dictCfg.Add(eType, cfg);

                return(true);
            }


            return(false);
        }