Ejemplo n.º 1
0
        public override object GetPropertyOwner(PropertyDescriptor pd)
        {
            ClassPointer cp = this.ClassPointer as ClassPointer;

            if (cp != null)
            {
                if (_rootDisplay == null)
                {
                    _rootDisplay = new ClassPointerDisplay(cp);
                }
                return(_rootDisplay);
            }
            return(base.GetPropertyOwner(pd));
        }
Ejemplo n.º 2
0
        public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            ClassPointer cp = this.ClassPointer as ClassPointer;

            if (cp != null)
            {
                if (_rootDisplay == null)
                {
                    _rootDisplay = new ClassPointerDisplay(cp);
                }
                return(TypeDescriptor.GetProperties(_rootDisplay, attributes));
            }
            return(base.GetProperties(attributes));
        }