Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
 // Must override WriteSettings() to write values
 public override void WriteSettings(UserSettingsWriter writer)
 {
     writer.Write("openMinimized", openMinimized);
     writer.Write("launchWeb", launchWeb);
     writer.WriteEncrypted("weblink", weblink);
     writer.Write("launchServer", launchServer);
     writer.Write("signalrPort", signalrPort);
     writer.WriteEncrypted("username", username);
     writer.WriteEncrypted("password", password);
     writer.Write("autologin", autologin);
 }
Beispiel #3
0
 public abstract void WriteSettings(UserSettingsWriter writer);