public abstract GetPropertyValues ( |
||
context | ||
collection | ||
리턴 |
void CacheValuesByProvider(SettingsProvider provider) { SettingsPropertyCollection col = new SettingsPropertyCollection(); foreach (SettingsProperty p in Properties) { if (p.Provider == provider) { col.Add(p); } } if (col.Count > 0) { SettingsPropertyValueCollection vals = provider.GetPropertyValues(Context, col); foreach (SettingsPropertyValue prop in vals) { if (PropertyValues [prop.Name] != null) { PropertyValues [prop.Name].PropertyValue = prop.PropertyValue; } else { PropertyValues.Add(prop); } } } OnSettingsLoaded(this, new SettingsLoadedEventArgs(provider)); }
private void GetPropertiesFromProvider(SettingsProvider provider) { SettingsPropertyCollection collection = new SettingsPropertyCollection(); foreach (SettingsProperty property in this.Properties) { if (property.Provider == provider) { collection.Add(property); } } if (collection.Count > 0) { foreach (SettingsPropertyValue value2 in provider.GetPropertyValues(this.Context, collection)) { if (this._PropertyValues[value2.Name] == null) { this._PropertyValues.Add(value2); } } } }
private void GetPropertiesFromProvider(SettingsProvider provider) { SettingsPropertyCollection collection = new SettingsPropertyCollection(); foreach (SettingsProperty property in this.Properties) { if (property.Provider == provider) { collection.Add(property); } } if (collection.Count > 0) { foreach (SettingsPropertyValue value2 in provider.GetPropertyValues(this.Context, collection)) { if (this._PropertyValues[value2.Name] == null) { this._PropertyValues.Add(value2); } } } }
private void GetPropertiesFromProvider(SettingsProvider provider) { SettingsPropertyCollection ppc = new SettingsPropertyCollection(); foreach (SettingsProperty pp in Properties) { if (pp.Provider == provider) { ppc.Add(pp); } } if (ppc.Count > 0) { SettingsPropertyValueCollection ppcv = provider.GetPropertyValues(Context, ppc); foreach (SettingsPropertyValue p in ppcv) { if (_PropertyValues[p.Name] == null) { _PropertyValues.Add(p); } } } }
void CacheValuesByProvider (SettingsProvider provider) { SettingsPropertyCollection col = new SettingsPropertyCollection (); foreach (SettingsProperty p in Properties) { if (p.Provider == provider) col.Add (p); } if (col.Count > 0) { SettingsPropertyValueCollection vals = provider.GetPropertyValues (Context, col); PropertyValues.Add (vals); } OnSettingsLoaded (this, new SettingsLoadedEventArgs (provider)); }
private void GetPropertiesFromProvider(SettingsProvider provider) { SettingsPropertyCollection ppc = new SettingsPropertyCollection(); foreach (SettingsProperty pp in Properties) { if (pp.Provider == provider) { ppc.Add(pp); } } if (ppc.Count > 0) { SettingsPropertyValueCollection ppcv = provider.GetPropertyValues(Context, ppc); foreach (SettingsPropertyValue p in ppcv) { if (_PropertyValues[p.Name] == null) _PropertyValues.Add(p); } } }