/// <summary> /// 保存配置类实例 /// </summary> /// <param name="configinfo"></param> /// <returns></returns> public static bool SaveConfig(FontConfig configinfo) { FontConfigFileManager rcfm = new FontConfigFileManager(); FontConfigFileManager.ConfigInfo = configinfo; return(rcfm.SaveConfig()); }
static FontConfigs() { configinfo = FontConfigFileManager.LoadConfig(); EncryptConfigTimer.AutoReset = true; EncryptConfigTimer.Enabled = true; EncryptConfigTimer.Elapsed += new System.Timers.ElapsedEventHandler(Timer_Elapsed); EncryptConfigTimer.Start(); }
/// <summary> /// 重设配置类实例 /// </summary> public static void ResetConfig() { configinfo = FontConfigFileManager.LoadConfig(); }