Пример #1
0
        public void CreateEventBridge()
        {
            if (false == Factory.Settings.EnableEvents)
            {
                return;
            }

            if (null != _connectPoint)
            {
                return;
            }

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


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

            if (DispImageEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                _dispImageEvents_SinkHelper = new DispImageEvents_SinkHelper(this, _connectPoint);
                return;
            }
        }
Пример #2
0
        public void DisposeEventBridge()
        {
            if (null != __ImageEvents_SinkHelper)
            {
                __ImageEvents_SinkHelper.Dispose();
                __ImageEvents_SinkHelper = null;
            }
            if (null != _dispImageEvents_SinkHelper)
            {
                _dispImageEvents_SinkHelper.Dispose();
                _dispImageEvents_SinkHelper = null;
            }

            _connectPoint = null;
        }
Пример #3
0
        public void DisposeEventBridge()
        {
			if( null != __ImageEvents_SinkHelper)
			{
				__ImageEvents_SinkHelper.Dispose();
				__ImageEvents_SinkHelper = null;
			}
			if( null != _dispImageEvents_SinkHelper)
			{
				_dispImageEvents_SinkHelper.Dispose();
				_dispImageEvents_SinkHelper = null;
			}

			_connectPoint = null;
		}
Пример #4
0
		public void CreateEventBridge()
        {
			if(false == Factory.Settings.EnableEvents)
				return;
	
			if (null != _connectPoint)
				return;
	
            if (null == _activeSinkId)
				_activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, _ImageEvents_SinkHelper.Id,DispImageEvents_SinkHelper.Id);


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

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