Esempio n. 1
0
        /// <summary>
        /// 保存配置类实例
        /// </summary>
        /// <param name="emailconfiginfo"></param>
        /// <returns></returns>
        public static bool SaveConfig(UIConfigInfo emailconfiginfo)
        {
            UIConfigFileManager ecfm = new UIConfigFileManager();

            UIConfigFileManager.ConfigInfo = emailconfiginfo;
            return(ecfm.SaveConfig());
        }
Esempio n. 2
0
 /// <summary>
 /// 保存配置类实例
 /// </summary>
 /// <param name="emailconfiginfo"></param>
 /// <returns></returns>
 public static bool SaveConfig(UIConfigInfo emailconfiginfo)
 {
     UIConfigFileManager ecfm = new UIConfigFileManager();
     UIConfigFileManager.ConfigInfo = emailconfiginfo;
     return ecfm.SaveConfig();
 }
Esempio n. 3
0
 /// <summary>
 /// 初始化文件修改时间和对象实例
 /// </summary>
 static UIConfigFileManager()
 {
     m_fileoldchange = System.IO.File.GetLastWriteTime(ConfigFilePath);
     m_configinfo    = (UIConfigInfo)DefaultConfigFileManager.DeserializeInfo(ConfigFilePath, typeof(UIConfigInfo));
 }
Esempio n. 4
0
 /// <summary>
 /// 初始化文件修改时间和对象实例
 /// </summary>
 static UIConfigFileManager()
 {
     m_fileoldchange = System.IO.File.GetLastWriteTime(ConfigFilePath);
     m_configinfo = (UIConfigInfo)DefaultConfigFileManager.DeserializeInfo(ConfigFilePath, typeof(UIConfigInfo));
 }