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

            APIConfigFileManager.ConfigInfo = apiconfiginfo;
            return(acfm.SaveConfig());
        }
Beispiel #2
0
 /// <summary>
 /// 保存配置类实例
 /// </summary>
 /// <returns></returns>
 public static bool SaveConfig(APIConfigInfo apiconfiginfo)
 {
     APIConfigFileManager acfm = new APIConfigFileManager();
     APIConfigFileManager.ConfigInfo = apiconfiginfo;
     return acfm.SaveConfig();
 }
 /// <summary>
 /// 初始化文件修改时间和对象实例
 /// </summary>
 static APIConfigFileManager()
 {
     m_fileoldchange = System.IO.File.GetLastWriteTime(ConfigFilePath);
     m_configinfo    = (APIConfigInfo)DefaultConfigFileManager.DeserializeInfo(ConfigFilePath, typeof(APIConfigInfo));
 }
 /// <summary>
 /// 初始化文件修改时间和对象实例
 /// </summary>
 static APIConfigFileManager()
 {
     m_fileoldchange = System.IO.File.GetLastWriteTime(ConfigFilePath);
     m_configinfo = (APIConfigInfo) DefaultConfigFileManager.DeserializeInfo(ConfigFilePath, typeof(APIConfigInfo));
 }