CreateContainerHelper() abstract private method

abstract private CreateContainerHelper ( IPropertyContainer parent ) : ObjectContainerHelperBase
parent IPropertyContainer
return ObjectContainerHelperBase
        internal PropertyItem(DescriptorPropertyDefinitionBase definition)
            : base(definition.IsPropertyGridCategorized)
        {
            if (definition == null)
            {
                throw new ArgumentNullException("definition");
            }

            this.DescriptorDefinition              = definition;
            this.ContainerHelper                   = definition.CreateContainerHelper(this);
            definition.ContainerHelperInvalidated += new EventHandler(OnDefinitionContainerHelperInvalidated);
        }
Beispiel #2
0
    private void Init( DescriptorPropertyDefinitionBase definition )
    {
      if( definition == null )
        throw new ArgumentNullException( "definition" );

      if( this.ContainerHelper != null )
      {
        this.ContainerHelper.ClearHelper();
      }
      this.DescriptorDefinition = definition;
      this.ContainerHelper = definition.CreateContainerHelper( this );
      definition.ContainerHelperInvalidated += new EventHandler( OnDefinitionContainerHelperInvalidated );
      this.Loaded += this.PropertyItem_Loaded;
    }
    internal PropertyItem( DescriptorPropertyDefinitionBase definition )
      : base( definition.IsPropertyGridCategorized )
    {
      if( definition == null )
        throw new ArgumentNullException( "definition" );

      this.DescriptorDefinition = definition;
      this.ContainerHelper = definition.CreateContainerHelper( this );
      definition.ContainerHelperInvalidated += new EventHandler( OnDefinitionContainerHelperInvalidated );
    }