CreateContainerHelper() abstract private méthode

abstract private CreateContainerHelper ( IPropertyContainer parent ) : ObjectContainerHelperBase
parent IPropertyContainer
Résultat 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);
        }
Exemple #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 );
    }