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

KryptonPaletteInputControl() public method

Initialize a new instance of the KryptonPaletteInputControl class.
public KryptonPaletteInputControl ( PaletteRedirect redirect, PaletteBackStyle backStyle, PaletteBorderStyle borderStyle, PaletteContentStyle contentStyle, NeedPaintHandler needPaint ) : System
redirect PaletteRedirect Redirector to inherit values from.
backStyle PaletteBackStyle Background style.
borderStyle PaletteBorderStyle Border style.
contentStyle PaletteContentStyle Content style.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        public KryptonPaletteInputControl(PaletteRedirect redirect,
                                          PaletteBackStyle backStyle,
                                          PaletteBorderStyle borderStyle,
                                          PaletteContentStyle contentStyle,
                                          NeedPaintHandler needPaint)
        {
            // Create the storage objects
            _stateCommon = new PaletteTripleRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
            _stateDisabled = new PaletteTriple(_stateCommon, needPaint);
            _stateNormal = new PaletteTriple(_stateCommon, needPaint);
            _stateActive = new PaletteTriple(_stateCommon, needPaint);
        }