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

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