Example #1
0
            /// <devdoc>
            ///     Creates a new DesignerOptionCollection.
            /// </devdoc>
            internal DesignerOptionCollection(DesignerOptionService service, DesignerOptionCollection parent, string name, object value)
            {
                _service = service;
                _parent  = parent;
                _name    = name;
                _value   = value;

                if (_parent != null)
                {
                    if (_parent._children == null)
                    {
                        _parent._children = new ArrayList(1);
                    }
                    _parent._children.Add(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);
            }