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

            if (null != _connectPoint)
            {
                return;
            }

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


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

            if (DispOptionGroupEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                _dispOptionGroupEvents_SinkHelper = new DispOptionGroupEvents_SinkHelper(this, _connectPoint);
                return;
            }
        }
Example #2
0
        public void DisposeEventBridge()
        {
            if (null != __OptionGroupEvents_SinkHelper)
            {
                __OptionGroupEvents_SinkHelper.Dispose();
                __OptionGroupEvents_SinkHelper = null;
            }
            if (null != _dispOptionGroupEvents_SinkHelper)
            {
                _dispOptionGroupEvents_SinkHelper.Dispose();
                _dispOptionGroupEvents_SinkHelper = null;
            }

            _connectPoint = null;
        }
Example #3
0
        public void DisposeEventBridge()
        {
			if( null != __OptionGroupEvents_SinkHelper)
			{
				__OptionGroupEvents_SinkHelper.Dispose();
				__OptionGroupEvents_SinkHelper = null;
			}
			if( null != _dispOptionGroupEvents_SinkHelper)
			{
				_dispOptionGroupEvents_SinkHelper.Dispose();
				_dispOptionGroupEvents_SinkHelper = null;
			}

			_connectPoint = null;
		}
Example #4
0
		public void CreateEventBridge()
        {
			if(false == NetOffice.Settings.EnableEvents)
				return;
	
			if (null != _connectPoint)
				return;
	
            if (null == _activeSinkId)
				_activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, _OptionGroupEvents_SinkHelper.Id,DispOptionGroupEvents_SinkHelper.Id);


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

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