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

            if (disposing && Control != null)
            {
                ButtonElementManager.Dispose(this);
                BorderElementManager.Dispose(this);
                ImageElementManager.Dispose(this);
            }

            _isDisposed = true;
            base.Dispose(disposing);
        }
Beispiel #2
0
        protected override void Dispose(bool disposing)
        {
            if (IsDisposed)
            {
                return;
            }
            if (Control != null)
            {
                Control.TouchUpInside -= OnButtonTouchUpInside;
                Control.TouchDown     -= OnButtonTouchDown;
                BorderElementManager.Dispose(this);
            }

            IsDisposed = true;

            base.Dispose(disposing);
        }
Beispiel #3
0
        protected override void Dispose(bool disposing)
        {
            if (_isDisposed)
            {
                return;
            }

            _isDisposed = true;

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

            base.Dispose(disposing);
        }