ComponentFactory.Krypton.Ribbon.RepeatButtonController.RepeatButtonController C# (CSharp) 메소드

RepeatButtonController() 공개 메소드

Initialize a new instance of the RepeatButtonController class.
public RepeatButtonController ( KryptonRibbon ribbon, ViewBase target, NeedPaintHandler needPaint ) : System
ribbon KryptonRibbon Reference to owning control.
target ViewBase Target for state changes.
needPaint NeedPaintHandler Delegate for notifying paint requests.
리턴 System
        public RepeatButtonController(KryptonRibbon ribbon,
                                      ViewBase target,
                                      NeedPaintHandler needPaint)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(target != null);

            // Remember incoming references
            _target = target;
            _ribbon = ribbon;

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

            _repeatTimer = new Timer();
            _repeatTimer.Interval = 50;
            _repeatTimer.Tick += new EventHandler(OnRepeatTick);
        }