예제 #1
0
        protected override void Dispose(bool disposing)
        {
            if (_isDisposed)
            {
                return;
            }

            _isDisposed = true;

            if (disposing)
            {
                if (Control != null)
                {
                    Control.TouchUpInside  -= OnButtonTouchUpInside;
                    Control.TouchUpOutside -= OnButtonTouchUpOutside;
                    Control.TouchDown      -= OnButtonTouchDown;
                    BorderElementManager.Dispose(this);
                    _buttonLayoutManager?.Dispose();
                    _buttonLayoutManager = null;
                }
            }

            base.Dispose(disposing);
        }
예제 #2
0
        public ButtonRenderer()
        {
            BorderElementManager.Init(this);

            _buttonLayoutManager = new ButtonLayoutManager(this);
        }