ComponentFactory.Krypton.Ribbon.GalleryButtonController.GalleryButtonController C# (CSharp) Method

GalleryButtonController() public method

Initialize a new instance of the GalleryButtonController class.
public GalleryButtonController ( ViewBase target, NeedPaintHandler needPaint, bool repeatTimer ) : System
target ViewBase Target for state changes.
needPaint NeedPaintHandler Delegate for notifying paint requests.
repeatTimer bool Does the button repeat when pressed.
return System
        public GalleryButtonController(ViewBase target,
                                       NeedPaintHandler needPaint,
                                       bool repeatTimer)
        {
            Debug.Assert(target != null);

            _target = target;
            NeedPaint = needPaint;

            if (repeatTimer)
            {
                _repeatTimer = new Timer();
                _repeatTimer.Interval = 250;
                _repeatTimer.Tick += new EventHandler(OnRepeatTick);
            }
        }