Beispiel #1
0
        //public void LoadResource()
        //{
        //    XDocument doc = FileTools.GetDocument("TaxiOperation_BanCo.Settings.Settings.xml");
        //    var mySetting = doc.Elements("Settings").Select(
        //        X => new
        //        {

        //        });
        //}

        /// <summary>
        /// Saves the current settings to the specified file.
        ///
        /// You must implement WriteSettings for any data to be written.
        /// </summary>
        public void Save()
        {
            UserSettingsWriter writer = new UserSettingsWriter(EncryptionKey);

            WriteSettings(writer);
            writer.Save(SettingsPath);
        }
 public override void WriteSettings(UserSettingsWriter writer)
 {
     writer.Write("IPAddress", IPAddress);
     writer.WriteEncrypted("Module", string.Format("{0}", ModuleId));
     writer.WriteEncrypted("Source", DataSource);
     writer.WriteEncrypted("Catalog", InitialCatalog);
     writer.WriteEncrypted("User", UserID);
     writer.WriteEncrypted("Password", Password);
 }
Beispiel #3
0
 public abstract void WriteSettings(UserSettingsWriter writer);