示例#1
0
        /// <summary>
        /// 保存配置类实例
        /// </summary>
        /// <returns></returns>
        public static bool SaveConfig(ForumHotConfigInfo forumHotConfigInfo)
        {
            ForumHotConfigFileManager fhcfm = new ForumHotConfigFileManager();

            ForumHotConfigFileManager.ConfigInfo = forumHotConfigInfo;
            return(fhcfm.SaveConfig());
        }
示例#2
0
 /// <summary>
 /// 获取配置类实例
 /// </summary>
 /// <returns></returns>
 public static ForumHotConfigInfo GetConfig()
 {
     return(ForumHotConfigFileManager.LoadConfig());
 }
示例#3
0
 /// <summary>
 /// 保存配置类实例
 /// </summary>
 /// <returns></returns>
 public static bool SaveConfig(ForumHotConfigInfo forumHotConfigInfo)
 {
     ForumHotConfigFileManager fhcfm = new ForumHotConfigFileManager();
     ForumHotConfigFileManager.ConfigInfo = forumHotConfigInfo;
     return fhcfm.SaveConfig();
 }