public static void SaveSettings(UnicornSettings settings)
        {
            EnsureCollectionExists(UnicornSettingsRoot);
            var store = GetStore();

            store.SetBoolean(UnicornSettingsRoot, SettingsAllowMultipleConfigsKey, settings.AllowMultipleConfigurations);
            store.SetBoolean(UnicornSettingsRoot, SettingsCheckForConfigurationHealthKey, settings.CheckForConfigurationHealth);
            store.SetString(UnicornSettingsRoot, SettingsEndPointKey, settings.EndPoint);
        }
Beispiel #2
0
 public UnicornSettingsViewModel(UnicornSettings settings)
 {
     _settings = settings;
     Save      = new Command(ExecuteSave);
 }