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

PaletteDataGridViewTripleStates() public method

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

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

            // Create storage that maps onto the inherit instances
            _back = new PaletteBack(inherit.PaletteBack, needPaint);
            _border = new PaletteBorder(inherit.PaletteBorder, needPaint);
            _content = new PaletteDataGridViewContentStates(inherit.PaletteContent, needPaint);
        }