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