ComponentFactory.Krypton.Toolkit.PaletteDataGridViewCells.PaletteDataGridViewCells C# (CSharp) Method

PaletteDataGridViewCells() public method

Initialize a new instance of the PaletteDataGridViewCells class.
public PaletteDataGridViewCells ( PaletteDataGridViewRedirect inherit, NeedPaintHandler needPaint ) : System
inherit PaletteDataGridViewRedirect Source for inheriting values.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        public PaletteDataGridViewCells(PaletteDataGridViewRedirect inherit,
                                        NeedPaintHandler needPaint)
        {
            Debug.Assert(inherit != null);

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Create storage that maps onto the inherit instances
            _dataCell = new PaletteDataGridViewTripleStates(inherit.DataCell, needPaint);
            _headerColumn = new PaletteDataGridViewTripleStates(inherit.HeaderColumn, needPaint);
            _headerRow = new PaletteDataGridViewTripleStates(inherit.HeaderRow, needPaint);
        }