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);
        }
Beispiel #4
0
 public ImageButtonRenderer() : base()
 {
     ButtonElementManager.Init(this);
     BorderElementManager.Init(this);
     ImageElementManager.Init(this);
 }
Beispiel #5
0
        public ButtonRenderer()
        {
            BorderElementManager.Init(this);

            _buttonLayoutManager = new ButtonLayoutManager(this);
        }
Beispiel #6
0
 public RadioButtonRenderer() : base()
 {
     BorderElementManager.Init(this);
 }