コード例 #1
0
        public SkinInfo GetTemplateGroup(string filename)
        {
            SkinInfo info = new SkinInfo();

            info.FromFile(TemplateGroupPath, filename);
            return(info);
        }
コード例 #2
0
        /// <summary>
        /// 无缓存获取皮肤信息
        /// </summary>
        /// <param name="fileName"></param>
        /// <returns></returns>
        public SkinInfo GetSkinInfoFromFile(string fileName)
        {
            SkinInfo skinInfo = new SkinInfo();

            if (!fileName.ToLower().EndsWith(".xml"))
            {
                fileName += ".xml";
            }
            skinInfo.FromFile(SkinPath, fileName);
            return(skinInfo);
        }