Example #1
0
        public FixedControlItem( CreateControl createControl )
        {
            if( createControl == null )
            {
                throw new ArgumentNullException( "createControl" );
            }

            _createControl = createControl;
            _control = _createControl();
        }
        public VariableControlItem( CreateControl createControl, CalculateSize calculateSize, int yOffset )
        {
            if( createControl == null )
            {
                throw new ArgumentNullException( "createControl" );
            }

            _createControl = createControl;
            _calculateSize = calculateSize;
            _control = _createControl();
            _yOffset = yOffset;
        }