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; }