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