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

PaletteTabTripleRedirect() публичный Метод

Initialize a new instance of the PaletteTabTripleRedirect class.
public PaletteTabTripleRedirect ( PaletteRedirect redirect, PaletteBackStyle backStyle, PaletteBorderStyle borderStyle, PaletteContentStyle contentStyle, NeedPaintHandler needPaint ) : System
redirect PaletteRedirect Inheritence redirection instance.
backStyle PaletteBackStyle Initial background style.
borderStyle PaletteBorderStyle Initial border style.
contentStyle PaletteContentStyle Initial content style.
needPaint NeedPaintHandler Delegate for notifying paint requests.
Результат System
        public PaletteTabTripleRedirect(PaletteRedirect redirect,
								        PaletteBackStyle backStyle,
								        PaletteBorderStyle borderStyle,
								        PaletteContentStyle contentStyle,
                                        NeedPaintHandler needPaint)
        {
            Debug.Assert(redirect != null);

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

            // Store the inherit instances
            _backInherit = new PaletteBackInheritRedirect(redirect, backStyle);
            _borderInherit = new PaletteBorderInheritRedirect(redirect, borderStyle);
            _contentInherit = new PaletteContentInheritRedirect(redirect, contentStyle);

            // Create storage that maps onto the inherit instances
            _back = new PaletteBack(_backInherit, needPaint);
            _border = new PaletteTabBorder(_borderInherit, needPaint);
            _content = new PaletteContent(_contentInherit, needPaint);
        }