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

ButtonController() public method

Initialize a new instance of the ButtonController class.
public ButtonController ( ViewBase target, NeedPaintHandler needPaint ) : System
target ViewBase Target for state changes.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        public ButtonController(ViewBase target,
                                NeedPaintHandler needPaint)
        {
            Debug.Assert(target != null);

            _mousePoint = CommonHelper.NullPoint;
            _splitRectangle = CommonHelper.NullRectangle;
            _inSplitRectangle = false;
            _allowDragging = false;
            _dragging = false;
            _clickOnDown = false;
            _target = target;
            _repeat = false;
            NeedPaint = needPaint;
        }