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

            if (null != _connectPoint)
            {
                return;
            }

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


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

            if (DispSubReportEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                _dispSubReportEvents_SinkHelper = new DispSubReportEvents_SinkHelper(this, _connectPoint);
                return;
            }
        }
Exemple #2
0
        public void DisposeEventBridge()
        {
            if (null != __SubReportEvents_SinkHelper)
            {
                __SubReportEvents_SinkHelper.Dispose();
                __SubReportEvents_SinkHelper = null;
            }
            if (null != _dispSubReportEvents_SinkHelper)
            {
                _dispSubReportEvents_SinkHelper.Dispose();
                _dispSubReportEvents_SinkHelper = null;
            }

            _connectPoint = null;
        }
Exemple #3
0
        public void DisposeEventBridge()
        {
			if( null != __SubReportEvents_SinkHelper)
			{
				__SubReportEvents_SinkHelper.Dispose();
				__SubReportEvents_SinkHelper = null;
			}
			if( null != _dispSubReportEvents_SinkHelper)
			{
				_dispSubReportEvents_SinkHelper.Dispose();
				_dispSubReportEvents_SinkHelper = null;
			}

			_connectPoint = null;
		}
Exemple #4
0
		public void CreateEventBridge()
        {
			if(false == Factory.Settings.EnableEvents)
				return;
	
			if (null != _connectPoint)
				return;
	
            if (null == _activeSinkId)
				_activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, _SubReportEvents_SinkHelper.Id,DispSubReportEvents_SinkHelper.Id);


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

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