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

            if (null != _connectPoint)
            {
                return;
            }

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


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

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

            _connectPoint = null;
        }