コード例 #1
0
ファイル: Section.cs プロジェクト: zyfzgt/NetOffice
        public void CreateEventBridge()
        {
            if (false == Factory.Settings.EnableEvents)
            {
                return;
            }

            if (null != _connectPoint)
            {
                return;
            }

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


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

            if (DispSectionEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                _dispSectionEvents_SinkHelper = new DispSectionEvents_SinkHelper(this, _connectPoint);
                return;
            }
        }
コード例 #2
0
ファイル: Section.cs プロジェクト: zyfzgt/NetOffice
        public void DisposeEventBridge()
        {
            if (null != __SectionEvents_SinkHelper)
            {
                __SectionEvents_SinkHelper.Dispose();
                __SectionEvents_SinkHelper = null;
            }
            if (null != _dispSectionEvents_SinkHelper)
            {
                _dispSectionEvents_SinkHelper.Dispose();
                _dispSectionEvents_SinkHelper = null;
            }

            _connectPoint = null;
        }
コード例 #3
0
ファイル: Section.cs プロジェクト: netoffice/NetOffice
        public void DisposeEventBridge()
        {
			if( null != __SectionEvents_SinkHelper)
			{
				__SectionEvents_SinkHelper.Dispose();
				__SectionEvents_SinkHelper = null;
			}
			if( null != _dispSectionEvents_SinkHelper)
			{
				_dispSectionEvents_SinkHelper.Dispose();
				_dispSectionEvents_SinkHelper = null;
			}

			_connectPoint = null;
		}
コード例 #4
0
ファイル: Section.cs プロジェクト: netoffice/NetOffice
		public void CreateEventBridge()
        {
			if(false == Factory.Settings.EnableEvents)
				return;
	
			if (null != _connectPoint)
				return;
	
            if (null == _activeSinkId)
				_activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, _SectionEvents_SinkHelper.Id,DispSectionEvents_SinkHelper.Id);


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

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