internal KryptonPalettePanels(PaletteRedirect redirector,
NeedPaintHandler needPaint)
{
Debug.Assert(redirector != null);
// Create the button style specific and common palettes
_panelCommon = new KryptonPalettePanel(redirector, PaletteBackStyle.PanelClient, needPaint);
_panelClient = new KryptonPalettePanel(redirector, PaletteBackStyle.PanelClient, needPaint);
_panelAlternate = new KryptonPalettePanel(redirector, PaletteBackStyle.PanelAlternate, needPaint);
_panelRibbonInactive = new KryptonPalettePanel(redirector, PaletteBackStyle.PanelRibbonInactive, needPaint);
_panelCustom1 = new KryptonPalettePanel(redirector, PaletteBackStyle.PanelCustom1, needPaint);
// Create redirectors for inheriting from style specific to style common
PaletteRedirectBack redirectCommon = new PaletteRedirectBack(redirector, _panelCommon.StateDisabled, _panelCommon.StateNormal);
// Inform the button style to use the new redirector
_panelClient.SetRedirector(redirectCommon);
_panelAlternate.SetRedirector(redirectCommon);
_panelRibbonInactive.SetRedirector(redirectCommon);
_panelCustom1.SetRedirector(redirectCommon);
}