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

GroupButtonController() public method

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

            _ribbon = ribbon;
            _target = target;
            NeedPaint = needPaint;

            // Default other fields
            _buttonType = GroupButtonType.Push;
        }