/// <summary> /// Initialize a new instance of the PaletteDataGridViewTripleStates class. /// </summary> /// <param name="inherit">Source for inheriting values.</param> /// <param name="needPaint">Delegate for notifying paint requests.</param> 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); }
/// <summary> /// Initialize a new instance of the PaletteDataGridViewTripleStates class. /// </summary> /// <param name="inherit">Source for inheriting values.</param> /// <param name="needPaint">Delegate for notifying paint requests.</param> 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); }