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

            if (null != _connectPoint)
            {
                return;
            }

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


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

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

            _connectPoint = null;
        }