PopulateOptionCollection() защищенный Метод

This method is called on demand the first time a user asks for child options or properties of an options collection.
protected PopulateOptionCollection ( DesignerOptionCollection options ) : void
options DesignerOptionCollection
Результат void
Пример #1
0
            internal DesignerOptionCollection(DesignerOptionCollection parent, string name, object propertiesProvider, DesignerOptionService service)
            {
                _name = name;
                _propertiesProvider = propertiesProvider;
                _parent             = parent;

                if (parent != null)
                {
                    if (parent._children == null)
                    {
                        parent._children = new ArrayList();
                    }
                    parent._children.Add(this);
                }

                _children      = new ArrayList();
                _optionService = service;
                service.PopulateOptionCollection(this);
            }
			internal DesignerOptionCollection (DesignerOptionCollection parent, string name, object propertiesProvider, DesignerOptionService service)
			{
				_name = name;
				_propertiesProvider = propertiesProvider;
				_parent = parent;

				if (parent != null) {
					if (parent._children == null)
						parent._children = new ArrayList ();
					parent._children.Add (this);
				}
				
				_children = new ArrayList ();
				_optionService = service;
				service.PopulateOptionCollection (this);
			}