ComponentFactory.Krypton.Toolkit.KryptonPalettePanels.KryptonPalettePanels C# (CSharp) Метод

KryptonPalettePanels() приватный Метод

Initialize a new instance of the KryptonPalettePanels class.
private KryptonPalettePanels ( PaletteRedirect redirector, NeedPaintHandler needPaint ) : System
redirector PaletteRedirect Palette redirector for sourcing inherited values.
needPaint NeedPaintHandler Delegate for notifying paint requests.
Результат System
        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);
        }