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