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

KryptonPaletteCargo() public method

Initialize a new instance of the KryptonPaletteCargo class.
public KryptonPaletteCargo ( NeedPaintHandler needPaint ) : System
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        public KryptonPaletteCargo(NeedPaintHandler needPaint)
        {
            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Default cargo values
            _color1 = Color.Empty;
            _color2 = Color.Empty;
            _color3 = Color.Empty;
            _color4 = Color.Empty;
            _color5 = Color.Empty;
        }