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

PaletteDragDrop() public method

Initialize a new instance of the PaletteDragDrop class.
public PaletteDragDrop ( IPalette inherit, NeedPaintHandler needPaint ) : System
inherit IPalette Source for inheriting values.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        public PaletteDragDrop(IPalette inherit,
                               NeedPaintHandler needPaint)
        {
            // Remember inheritance
            _inherit = inherit;

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

            // Set default values
            _feedback = PaletteDragFeedback.Inherit;
            _solidBack = Color.Empty;
            _solidBorder = Color.Empty;
            _solidOpacity = -1.0f;
            _dropDockBack = Color.Empty;
            _dropDockBorder = Color.Empty;
            _dropDockActive = Color.Empty;
            _dropDockInactive = Color.Empty;
        }