protected void WriteString(string settingsRoot, string property, string value) { IWritableSettingsStore userSettingsStore = GetWritableSettingsStore(settingsRoot); if (userSettingsStore != null) { userSettingsStore.SetString(settingsRoot, property, value); } }
protected void WriteStrings(string settingsRoot, string[] properties, string[] values) { Debug.Assert(properties.Length == values.Length); IWritableSettingsStore userSettingsStore = GetWritableSettingsStore(settingsRoot); if (userSettingsStore != null) { for (int i = 0; i < properties.Length; i++) { userSettingsStore.SetString(settingsRoot, properties[i], values[i]); } } }