public void Save(string fileName, bool encrypted)
        {
            string fullName = new System.IO.FileInfo(fileName).FullName;
            ConfigurationDocument document = new ConfigurationDocument();

            document.Add(GroupKeys.Language).Add(ItemKeys.CultureName, CultureName, encrypted);
            document.Save(fullName);
        }
Exemple #2
0
        public void Save(string fileName, bool encrypted)
        {
            string fullName = new System.IO.FileInfo(fileName).FullName;
            ConfigurationDocument document = new ConfigurationDocument();
            ConfigurationGroup    group    = document.Add(GroupKeys.DataBase);

            group.Add(ItemKeys.DataSource, DataSource, encrypted);
            group.Add(ItemKeys.InitialCatalog, InitialCatalog, encrypted);
            group.Add(ItemKeys.UserID, UserID, encrypted);
            group.Add(ItemKeys.Password, Password, encrypted);
            document.Save(fullName);
        }