void UpdateActivePackageSourceSetting() { RemoveActivePackageSourceSetting(); KeyValuePair <string, string> activePackageSourceSetting = PackageSourceConverter.ConvertToKeyValuePair(activePackageSource); SaveActivePackageSourceSetting(activePackageSourceSetting); }
IEnumerable <PackageSource> GetPackageSourcesFromSettings() { IList <KeyValuePair <string, string> > savedPackageSources = settings.GetValues(PackageSourcesSectionName); foreach (PackageSource packageSource in PackageSourceConverter.ConvertFromKeyValuePairs(savedPackageSources)) { packageSource.IsEnabled = IsPackageSourceEnabled(packageSource); yield return(packageSource); } }
void ReadActivePackageSource() { IList <KeyValuePair <string, string> > packageSources = settings.GetValues(ActivePackageSourceSectionName); activePackageSource = PackageSourceConverter.ConvertFromFirstKeyValuePair(packageSources); if (IsActivePackageSourceAggregatePackageSource()) { activePackageSource.IsAggregate = true; } }
void ReadActivePackageSource() { IList <KeyValuePair <string, string> > packageSources = settings.GetValues(ActivePackageSourceSectionName); activePackageSource = PackageSourceConverter.ConvertFromFirstKeyValuePair(packageSources); }
IList <KeyValuePair <string, string> > GetSettingsFromPackageSources() { return(PackageSourceConverter.ConvertToKeyValuePairList(packageSources)); }
IEnumerable <PackageSource> GetPackageSourcesFromSettings() { IList <KeyValuePair <string, string> > savedPackageSources = settings.GetValues(PackageSourcesSectionName); return(PackageSourceConverter.ConvertFromKeyValuePairs(savedPackageSources)); }
void ReadActivePackageSource() { IList <SettingValue> packageSources = settings.GetValues(ActivePackageSourceSectionName, false); activePackageSource = PackageSourceConverter.ConvertFromFirstSetting(packageSources); }
void UpdateSavedPackageSources() { SavedRegisteredPackageSources = PackageSourceConverter.ConvertToRegisteredPackageSourcesList(packageSources); }
IEnumerable <PackageSource> GetSavedPackageSources() { return(PackageSourceConverter.ConvertFromRegisteredPackageSources(SavedRegisteredPackageSources)); }