public void DisposeSinkHelper() { if (null != _sinkHelper) { _sinkHelper.Dispose(); _sinkHelper = null; } }
public void DisposeEventBridge() { if (null != _appEvents_SinkHelper) { _appEvents_SinkHelper.Dispose(); _appEvents_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, AppEvents_SinkHelper.Id); } if (AppEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { _appEvents_SinkHelper = new AppEvents_SinkHelper(this, _connectPoint); return; } }
public Application(string progId) { CreateFromProgId(progId); _sinkHelper = new AppEvents_SinkHelper(this); }
public Application() { CreateFromProgId("Excel.Application"); _sinkHelper = new AppEvents_SinkHelper(this); }
public Application(COMObject parentObject, object comProxy, Type comProxyType) : base(parentObject, comProxy, comProxyType) { _sinkHelper = new AppEvents_SinkHelper(this); }