public UnicornSettingsViewModel(UnicornSettings settings) { _settings = settings; Save = new Command(ExecuteSave); }
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); }