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

            if (null != _connectPoint)
            {
                return;
            }

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


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

            if (DispSectionInReportEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                _dispSectionInReportEvents_SinkHelper = new DispSectionInReportEvents_SinkHelper(this, _connectPoint);
                return;
            }
        }
Beispiel #2
0
        public void DisposeEventBridge()
        {
            if (null != __SectionInReportEvents_SinkHelper)
            {
                __SectionInReportEvents_SinkHelper.Dispose();
                __SectionInReportEvents_SinkHelper = null;
            }
            if (null != _dispSectionInReportEvents_SinkHelper)
            {
                _dispSectionInReportEvents_SinkHelper.Dispose();
                _dispSectionInReportEvents_SinkHelper = null;
            }

            _connectPoint = null;
        }
        public void DisposeEventBridge()
        {
			if( null != __SectionInReportEvents_SinkHelper)
			{
				__SectionInReportEvents_SinkHelper.Dispose();
				__SectionInReportEvents_SinkHelper = null;
			}
			if( null != _dispSectionInReportEvents_SinkHelper)
			{
				_dispSectionInReportEvents_SinkHelper.Dispose();
				_dispSectionInReportEvents_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, _SectionInReportEvents_SinkHelper.Id,DispSectionInReportEvents_SinkHelper.Id);


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

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