예제 #1
0
        /// <summary>
        /// 保存配置类实例
        /// </summary>
        /// <returns></returns>
        public static bool SaveConfig(TradeConfigInfo apiconfiginfo)
        {
            TradeConfigFileManager acfm = new TradeConfigFileManager();

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