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, _CustomControlEvents_SinkHelper.Id, DispCustomControlEvents_SinkHelper.Id);
            }


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

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

            _connectPoint = null;
        }
Example #3
0
        public void DisposeEventBridge()
        {
			if( null != __CustomControlEvents_SinkHelper)
			{
				__CustomControlEvents_SinkHelper.Dispose();
				__CustomControlEvents_SinkHelper = null;
			}
			if( null != _dispCustomControlEvents_SinkHelper)
			{
				_dispCustomControlEvents_SinkHelper.Dispose();
				_dispCustomControlEvents_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, _CustomControlEvents_SinkHelper.Id,DispCustomControlEvents_SinkHelper.Id);


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

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