GetPropertyValues() public abstract method

public abstract GetPropertyValues ( SettingsContext context, SettingsPropertyCollection collection ) : SettingsPropertyValueCollection
context SettingsContext
collection SettingsPropertyCollection
return SettingsPropertyValueCollection
コード例 #1
0
        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));
        }
コード例 #2
0
 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);
             }
         }
     }
 }
コード例 #3
0
        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);
                    }
                }
            }
        }
コード例 #4
0
        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);
                    }
                }
            }
        }
コード例 #5
0
		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));
		}
コード例 #6
0
       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);
               }
           }
       }