Exemple #1
0
        public NiEventSink(INiConnectionPoint connectionPoint)
        {
            if (connectionPoint == null)
                throw new ArgumentNullException("connectionPoint");

            _connectionPoint = connectionPoint;

            ErrorUtil.ThrowOnFailure(_connectionPoint.Advise(this, out _cookie));
        }
Exemple #2
0
        public NiEventSink(INiConnectionPoint connectionPoint)
        {
            if (connectionPoint == null)
            {
                throw new ArgumentNullException("connectionPoint");
            }

            _connectionPoint = connectionPoint;

            ErrorUtil.ThrowOnFailure(_connectionPoint.Advise(this, out _cookie));
        }
Exemple #3
0
        protected override void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (_connectionPoint != null)
                {
                    ErrorUtil.ThrowOnFailure(_connectionPoint.Unadvise(_cookie));
                    _connectionPoint = null;
                }

                _disposed = true;
            }

            base.Dispose(disposing);
        }
Exemple #4
0
        protected override void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (_connectionPoint != null)
                {
                    ErrorUtil.ThrowOnFailure(_connectionPoint.Unadvise(_cookie));
                    _connectionPoint = null;
                }

                _disposed = true;
            }

            base.Dispose(disposing);
        }
Exemple #5
0
 public WindowPaneListener(NiStatusBar statusBar, INiStatusBarUser statusBarUser, INiConnectionPoint connectionPoint)
     : base(connectionPoint)
 {
     _statusBar     = statusBar;
     _statusBarUser = statusBarUser;
 }
Exemple #6
0
 public WindowPaneSelectionListener(NiStatusBar statusBar, INiConnectionPoint connectionPoint)
     : base(connectionPoint)
 {
     _statusBar = statusBar;
 }
Exemple #7
0
 public WindowPaneSelectionListener(NiStatusBar statusBar, INiConnectionPoint connectionPoint)
     : base(connectionPoint)
 {
     _statusBar = statusBar;
 }
Exemple #8
0
 public WindowPaneListener(NiStatusBar statusBar, INiStatusBarUser statusBarUser, INiConnectionPoint connectionPoint)
     : base(connectionPoint)
 {
     _statusBar = statusBar;
     _statusBarUser = statusBarUser;
 }
Exemple #9
0
 public Notify(NiTaskDialog taskDialog, INiConnectionPoint connectionPoint)
     : base(connectionPoint)
 {
     _taskDialog = taskDialog;
 }