private static bool TryGetObjectSettings(string uniqueKey, SettingsCollection settings, out SettingsCollection.ObjectSettings objectSettings)
 {
     objectSettings = settings.FirstOrDefault(x => string.Equals(x.UniqueKey, uniqueKey, StringComparison.OrdinalIgnoreCase));
     return(objectSettings != null);
 }
Exemple #2
0
 private static SettingsCollection.ObjectSettings ReadProfileSettings(SettingsCollection settings, string profileName)
 {
     return(settings.FirstOrDefault(x => string.Equals(x[SettingsConstants.DisplayNameField], profileName, StringComparison.OrdinalIgnoreCase)));
 }
 private static bool TryGetObjectSettings(string propertyName, string value, SettingsCollection settings, out SettingsCollection.ObjectSettings objectSettings)
 {
     objectSettings = settings.FirstOrDefault(x => string.Equals(x[propertyName], value, StringComparison.OrdinalIgnoreCase));
     return(objectSettings != null);
 }
 private static SettingsCollection.ObjectSettings ReadProfileSettings(SettingsCollection settings, string profileName)
 {
     return settings.FirstOrDefault(x => string.Equals(x[SettingsConstants.DisplayNameField], profileName, StringComparison.OrdinalIgnoreCase));
 }