public NiEventSink(INiConnectionPoint connectionPoint) { if (connectionPoint == null) throw new ArgumentNullException("connectionPoint"); _connectionPoint = connectionPoint; ErrorUtil.ThrowOnFailure(_connectionPoint.Advise(this, out _cookie)); }
public NiEventSink(INiConnectionPoint connectionPoint) { if (connectionPoint == null) { throw new ArgumentNullException("connectionPoint"); } _connectionPoint = connectionPoint; ErrorUtil.ThrowOnFailure(_connectionPoint.Advise(this, out _cookie)); }
protected override void Dispose(bool disposing) { if (!_disposed) { if (_connectionPoint != null) { ErrorUtil.ThrowOnFailure(_connectionPoint.Unadvise(_cookie)); _connectionPoint = null; } _disposed = true; } base.Dispose(disposing); }
public WindowPaneListener(NiStatusBar statusBar, INiStatusBarUser statusBarUser, INiConnectionPoint connectionPoint) : base(connectionPoint) { _statusBar = statusBar; _statusBarUser = statusBarUser; }
public WindowPaneSelectionListener(NiStatusBar statusBar, INiConnectionPoint connectionPoint) : base(connectionPoint) { _statusBar = statusBar; }
public Notify(NiTaskDialog taskDialog, INiConnectionPoint connectionPoint) : base(connectionPoint) { _taskDialog = taskDialog; }