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

            if (null != _connectPoint)
            {
                return;
            }

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


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

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

            _connectPoint = null;
        }