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

            if (null != _connectPoint)
            {
                return;
            }

            if (null == _activeSinkId)
            {
                _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, _CustomControlInReportEvents_SinkHelper.Id, DispCustomControlInReportEvents_SinkHelper.Id);
            }


            if (_CustomControlInReportEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                __CustomControlInReportEvents_SinkHelper = new _CustomControlInReportEvents_SinkHelper(this, _connectPoint);
                return;
            }

            if (DispCustomControlInReportEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                _dispCustomControlInReportEvents_SinkHelper = new DispCustomControlInReportEvents_SinkHelper(this, _connectPoint);
                return;
            }
        }
        public void DisposeEventBridge()
        {
            if (null != __CustomControlInReportEvents_SinkHelper)
            {
                __CustomControlInReportEvents_SinkHelper.Dispose();
                __CustomControlInReportEvents_SinkHelper = null;
            }
            if (null != _dispCustomControlInReportEvents_SinkHelper)
            {
                _dispCustomControlInReportEvents_SinkHelper.Dispose();
                _dispCustomControlInReportEvents_SinkHelper = null;
            }

            _connectPoint = null;
        }
        public void DisposeEventBridge()
        {
			if( null != __CustomControlInReportEvents_SinkHelper)
			{
				__CustomControlInReportEvents_SinkHelper.Dispose();
				__CustomControlInReportEvents_SinkHelper = null;
			}
			if( null != _dispCustomControlInReportEvents_SinkHelper)
			{
				_dispCustomControlInReportEvents_SinkHelper.Dispose();
				_dispCustomControlInReportEvents_SinkHelper = null;
			}

			_connectPoint = null;
		}
		public void CreateEventBridge()
        {
			if(false == Factory.Settings.EnableEvents)
				return;
	
			if (null != _connectPoint)
				return;
	
            if (null == _activeSinkId)
				_activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, _CustomControlInReportEvents_SinkHelper.Id,DispCustomControlInReportEvents_SinkHelper.Id);


			if(_CustomControlInReportEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
			{
				__CustomControlInReportEvents_SinkHelper = new _CustomControlInReportEvents_SinkHelper(this, _connectPoint);
				return;
			}

			if(DispCustomControlInReportEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
			{
				_dispCustomControlInReportEvents_SinkHelper = new DispCustomControlInReportEvents_SinkHelper(this, _connectPoint);
				return;
			} 
        }