Example #1
0
        /// <summary>
        /// 保存配置类实例
        /// </summary>
        /// <returns></returns>
        public static bool SaveConfig(APIConfigInfo apiconfiginfo)
        {
            APIConfigFileManager acfm = new APIConfigFileManager();

            APIConfigFileManager.ConfigInfo = apiconfiginfo;
            return(acfm.SaveConfig());
        }
Example #2
0
 /// <summary>
 /// 保存配置类实例
 /// </summary>
 /// <returns></returns>
 public static bool SaveConfig(APIConfigInfo apiconfiginfo)
 {
     APIConfigFileManager acfm = new APIConfigFileManager();
     APIConfigFileManager.ConfigInfo = apiconfiginfo;
     return acfm.SaveConfig();
 }
Example #3
0
 /// <summary>
 /// 获取配置类实例
 /// </summary>
 /// <returns></returns>
 public static APIConfigInfo GetConfig()
 {
     return(APIConfigFileManager.LoadConfig());
 }