private static void SaveBoolean(OptionName.SettingIds name, bool variableValue, WritableSettingsStore settingsStore) { if (!settingsStore.CollectionExists(defaultCollectionPath)) { settingsStore.CreateCollection(defaultCollectionPath); } settingsStore.SetBoolean(defaultCollectionPath, name.ToString(), variableValue); }
private static bool LoadBoolean(OptionName.SettingIds name, SettingsStore settingsStore, bool defaultValue) { return(settingsStore.GetBoolean(defaultCollectionPath, name.ToString(), defaultValue)); }