/// <summary> /// 初始化文件修改时间和对象实例 /// </summary> static PhotoConfigFileManager() { m_fileoldchange = System.IO.File.GetLastWriteTime(ConfigFilePath); try { m_PhotoConfigInfo = (PhotoConfigInfo)DefaultConfigFileManager.DeserializeInfo(ConfigFilePath, typeof(PhotoConfigInfo)); } catch { if (File.Exists(ConfigFilePath)) { m_PhotoConfigInfo = (PhotoConfigInfo)DefaultConfigFileManager.DeserializeInfo(ConfigFilePath, typeof(PhotoConfigInfo)); } } }
/// <summary> /// 初始化文件修改时间和对象实例 /// </summary> static EmailConfigFileManager() { m_fileoldchange = System.IO.File.GetLastWriteTime(ConfigFilePath); m_configinfo = (EmailConfigInfo)DefaultConfigFileManager.DeserializeInfo(ConfigFilePath, typeof(EmailConfigInfo)); }