public void CreateEventBridge() { if (false == NetOffice.Settings.EnableEvents) { return; } if (null != _connectPoint) { return; } if (null == _activeSinkId) { _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, _OptionButtonInOptionEvents_SinkHelper.Id, DispOptionButtonEvents_SinkHelper.Id); } if (_OptionButtonInOptionEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { __OptionButtonInOptionEvents_SinkHelper = new _OptionButtonInOptionEvents_SinkHelper(this, _connectPoint); return; } if (DispOptionButtonEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { _dispOptionButtonEvents_SinkHelper = new DispOptionButtonEvents_SinkHelper(this, _connectPoint); return; } }
public void DisposeEventBridge() { if (null != __OptionButtonInOptionEvents_SinkHelper) { __OptionButtonInOptionEvents_SinkHelper.Dispose(); __OptionButtonInOptionEvents_SinkHelper = null; } if (null != _dispOptionButtonEvents_SinkHelper) { _dispOptionButtonEvents_SinkHelper.Dispose(); _dispOptionButtonEvents_SinkHelper = null; } _connectPoint = null; }
public void DisposeEventBridge() { if( null != __OptionButtonInOptionEvents_SinkHelper) { __OptionButtonInOptionEvents_SinkHelper.Dispose(); __OptionButtonInOptionEvents_SinkHelper = null; } if( null != _dispOptionButtonEvents_SinkHelper) { _dispOptionButtonEvents_SinkHelper.Dispose(); _dispOptionButtonEvents_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, _OptionButtonInOptionEvents_SinkHelper.Id,DispOptionButtonEvents_SinkHelper.Id); if(_OptionButtonInOptionEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { __OptionButtonInOptionEvents_SinkHelper = new _OptionButtonInOptionEvents_SinkHelper(this, _connectPoint); return; } if(DispOptionButtonEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { _dispOptionButtonEvents_SinkHelper = new DispOptionButtonEvents_SinkHelper(this, _connectPoint); return; } }