public override void Stop()
        {
            AimSettings.Default.PropertyChanged            -= OnAimSettingsChanged;
            _localDataStoreEventBroker.SopInstanceImported -= OnSopInstanceImported;
            _localDataStoreEventBroker.Dispose();

            base.Stop();
        }
Exemplo n.º 2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                this.Context.SelectionChanged -= OnSelectedStudyChanged;

                _localDataStoreEventBroker.Connected      -= OnLocalDataStoreConnected;
                _localDataStoreEventBroker.LostConnection -= OnLocalDataStoreLostConnection;
                _localDataStoreEventBroker.Dispose();
                _localDataStoreEventBroker = null;
            }
            base.Dispose(disposing);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Called when the tool is disposed.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                // TODO - Save new annotations here?

                _annotationDictionary.Clear();

                _localDataStoreEventBroker.SopInstanceImported   -= OnSopInstanceImported;
                _localDataStoreEventBroker.InstanceDeleted       -= OnInstanceDeleted;
                _localDataStoreEventBroker.LocalDataStoreCleared -= OnLocalDataStoreCleared;
                _localDataStoreEventBroker.Dispose();

                // this.ImageViewer.EventBroker.TileSelected -= OnTileSelected;
                this.ImageViewer.EventBroker.DisplaySetChanged -= OnDisplaySetChanged;
            }

            base.Dispose(disposing);
        }