Beispiel #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (_actionDispatcher != null)
                {
                    _actionDispatcher.Remove(_actionItem.Identifier);
                    _actionDispatcher = null;
                }

                StackPanelVerticalComponent.MouseEnter -= ButtonComponent_MouseEnter;
                StackPanelVerticalComponent.MouseLeave -= ButtonComponent_MouseLeave;
                ButtonComponent.Click     -= OnClick;
                DropButtonComponent.Click -= OnDropClick;

                if (_dropMenu != null)
                {
                    if (disposing)
                    {
                        _dropMenu.Dispose();
                    }
                    _dropMenu = null;
                }

                _disposed = true;
            }
        }
Beispiel #2
0
        public void Dispose()
        {
            if (!_disposed)
            {
                if (_actionDispatcher != null)
                {
                    _actionDispatcher.Remove(_actionItem.Identifier);
                    _actionDispatcher = null;
                }

                ButtonComponent.MouseEnter -= ButtonComponentMouseEnter;
                ButtonComponent.MouseLeave -= ButtonComponentMouseLeave;
                ButtonComponent.Click      -= OnClick;
                _disposed = true;
            }
        }
Beispiel #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (_actionDispatcher != null)
                {
                    _actionDispatcher.Remove(_actionItem.Identifier);
                    _actionDispatcher = null;
                }
                LayoutDropDownButton.MouseEnter -= ButtonComponent_MouseEnter;
                LayoutDropDownButton.MouseLeave -= ButtonComponent_MouseLeave;
                ButtonComponent.Click           -= OnDropClick;

                _popup.Dispose();
                _popup = null;

                _disposed = true;
            }
        }