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

            if (null != _connectPoint)
            {
                return;
            }

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


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

            if (DispTextBoxEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                _dispTextBoxEvents_SinkHelper = new DispTextBoxEvents_SinkHelper(this, _connectPoint);
                return;
            }
        }
Exemple #2
0
        public void DisposeEventBridge()
        {
            if (null != __TextBoxEvents_SinkHelper)
            {
                __TextBoxEvents_SinkHelper.Dispose();
                __TextBoxEvents_SinkHelper = null;
            }
            if (null != _dispTextBoxEvents_SinkHelper)
            {
                _dispTextBoxEvents_SinkHelper.Dispose();
                _dispTextBoxEvents_SinkHelper = null;
            }

            _connectPoint = null;
        }
Exemple #3
0
        public void DisposeEventBridge()
        {
			if( null != __TextBoxEvents_SinkHelper)
			{
				__TextBoxEvents_SinkHelper.Dispose();
				__TextBoxEvents_SinkHelper = null;
			}
			if( null != _dispTextBoxEvents_SinkHelper)
			{
				_dispTextBoxEvents_SinkHelper.Dispose();
				_dispTextBoxEvents_SinkHelper = null;
			}

			_connectPoint = null;
		}
Exemple #4
0
		public void CreateEventBridge()
        {
			if(false == Factory.Settings.EnableEvents)
				return;
	
			if (null != _connectPoint)
				return;
	
            if (null == _activeSinkId)
				_activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, _TextBoxEvents_SinkHelper.Id,DispTextBoxEvents_SinkHelper.Id);


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

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