public void CreateEventBridge() { if (false == Factory.Settings.EnableEvents) { return; } if (null != _connectPoint) { return; } if (null == _activeSinkId) { _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, _TabControlEvents_SinkHelper.Id, DispTabControlEvents_SinkHelper.Id); } if (_TabControlEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { __TabControlEvents_SinkHelper = new _TabControlEvents_SinkHelper(this, _connectPoint); return; } if (DispTabControlEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { _dispTabControlEvents_SinkHelper = new DispTabControlEvents_SinkHelper(this, _connectPoint); return; } }
public void DisposeEventBridge() { if (null != __TabControlEvents_SinkHelper) { __TabControlEvents_SinkHelper.Dispose(); __TabControlEvents_SinkHelper = null; } if (null != _dispTabControlEvents_SinkHelper) { _dispTabControlEvents_SinkHelper.Dispose(); _dispTabControlEvents_SinkHelper = null; } _connectPoint = null; }
public void DisposeEventBridge() { if( null != __TabControlEvents_SinkHelper) { __TabControlEvents_SinkHelper.Dispose(); __TabControlEvents_SinkHelper = null; } if( null != _dispTabControlEvents_SinkHelper) { _dispTabControlEvents_SinkHelper.Dispose(); _dispTabControlEvents_SinkHelper = null; } _connectPoint = null; }
public void CreateEventBridge() { if(false == NetOffice.Settings.EnableEvents) return; if (null != _connectPoint) return; if (null == _activeSinkId) _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, _TabControlEvents_SinkHelper.Id,DispTabControlEvents_SinkHelper.Id); if(_TabControlEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { __TabControlEvents_SinkHelper = new _TabControlEvents_SinkHelper(this, _connectPoint); return; } if(DispTabControlEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { _dispTabControlEvents_SinkHelper = new DispTabControlEvents_SinkHelper(this, _connectPoint); return; } }