Exemplo n.º 1
0
 /// <summary>
 /// 重设配置类实例
 /// </summary>
 public static void ResetConfig()
 {
     _configinfo = BaseConfigFileManager.LoadRealConfig();
 }
Exemplo n.º 2
0
        /// <summary>
        /// ��������
        /// </summary>
        /// <param name="baseconfiginfo"></param>
        /// <returns></returns>
        public static bool SaveConfig(BaseConfigInfo baseconfiginfo)
        {
            BaseConfigFileManager bcfm = new BaseConfigFileManager();

            // ����
            baseconfiginfo.Dbconnectstring = Sjs.Common.DES.Encode(baseconfiginfo.Dbconnectstring, "sjscanpvvvfb");

            BaseConfigFileManager.ConfigInfo = baseconfiginfo;

            return bcfm.SaveConfig();
        }