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

            if (null != _connectPoint)
            {
                return;
            }

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


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

            if (DispPageHdrFtrInReportEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                _dispPageHdrFtrInReportEvents_SinkHelper = new DispPageHdrFtrInReportEvents_SinkHelper(this, _connectPoint);
                return;
            }
        }
Esempio n. 2
0
        public void DisposeEventBridge()
        {
            if (null != __PageHdrFtrInReportEvents_SinkHelper)
            {
                __PageHdrFtrInReportEvents_SinkHelper.Dispose();
                __PageHdrFtrInReportEvents_SinkHelper = null;
            }
            if (null != _dispPageHdrFtrInReportEvents_SinkHelper)
            {
                _dispPageHdrFtrInReportEvents_SinkHelper.Dispose();
                _dispPageHdrFtrInReportEvents_SinkHelper = null;
            }

            _connectPoint = null;
        }
Esempio n. 3
0
        public void DisposeEventBridge()
        {
			if( null != __PageHdrFtrInReportEvents_SinkHelper)
			{
				__PageHdrFtrInReportEvents_SinkHelper.Dispose();
				__PageHdrFtrInReportEvents_SinkHelper = null;
			}
			if( null != _dispPageHdrFtrInReportEvents_SinkHelper)
			{
				_dispPageHdrFtrInReportEvents_SinkHelper.Dispose();
				_dispPageHdrFtrInReportEvents_SinkHelper = null;
			}

			_connectPoint = null;
		}
Esempio n. 4
0
		public void CreateEventBridge()
        {
			if(false == NetOffice.Settings.EnableEvents)
				return;
	
			if (null != _connectPoint)
				return;
	
            if (null == _activeSinkId)
				_activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, _PageHdrFtrInReportEvents_SinkHelper.Id,DispPageHdrFtrInReportEvents_SinkHelper.Id);


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

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