Esempio n. 1
0
        /// <summary>
        /// 保存配置类实例
        /// </summary>
        /// <param name="configinfo"></param>
        /// <returns></returns>
        public static bool SaveConfig(ThemeConfig configinfo)
        {
            ThemeConfigFileManager rcfm = new ThemeConfigFileManager();

            ThemeConfigFileManager.ConfigInfo = configinfo;
            return(rcfm.SaveConfig());
        }
Esempio n. 2
0
 static ThemeConfigs()
 {
     configinfo = ThemeConfigFileManager.LoadConfig();
     EncryptConfigTimer.AutoReset = true;
     EncryptConfigTimer.Enabled   = true;
     EncryptConfigTimer.Elapsed  += new System.Timers.ElapsedEventHandler(Timer_Elapsed);
     EncryptConfigTimer.Start();
 }
Esempio n. 3
0
 /// <summary>
 /// 重设配置类实例
 /// </summary>
 public static void ResetConfig()
 {
     configinfo = ThemeConfigFileManager.LoadConfig();
 }