public void CreateEventBridge()
        {
            if (false == Factory.Settings.EnableEvents)
            {
                return;
            }

            if (null != _connectPoint)
            {
                return;
            }

            if (null == _activeSinkId)
            {
                _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events._CheckBoxEvents_SinkHelper.Id, Events.DispCheckBoxEvents_SinkHelper.Id);
            }


            if (Events._CheckBoxEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                __CheckBoxEvents_SinkHelper = new Events._CheckBoxEvents_SinkHelper(this, _connectPoint);
                return;
            }

            if (Events.DispCheckBoxEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                _dispCheckBoxEvents_SinkHelper = new Events.DispCheckBoxEvents_SinkHelper(this, _connectPoint);
                return;
            }
        }
        public void DisposeEventBridge()
        {
            if (null != __CheckBoxEvents_SinkHelper)
            {
                __CheckBoxEvents_SinkHelper.Dispose();
                __CheckBoxEvents_SinkHelper = null;
            }
            if (null != _dispCheckBoxEvents_SinkHelper)
            {
                _dispCheckBoxEvents_SinkHelper.Dispose();
                _dispCheckBoxEvents_SinkHelper = null;
            }

            _connectPoint = null;
        }