/// <summary>
        /// Called by the host to initialize the application component.
        /// </summary>
        public override void Start()
        {
            base.Start();

            _localDataStoreEventBroker = LocalDataStoreActivityMonitor.CreatEventBroker();
            _localDataStoreEventBroker.SopInstanceImported += OnSopInstanceImported;
            AimSettings.Default.PropertyChanged            += OnAimSettingsChanged;
        }
Beispiel #2
0
        public override void Initialize()
        {
            base.Initialize();

            this.Context.SelectionChanged += OnSelectedStudyChanged;

            _localDataStoreEventBroker                 = LocalDataStoreActivityMonitor.CreatEventBroker();
            _localDataStoreEventBroker.Connected      += OnLocalDataStoreConnected;
            _localDataStoreEventBroker.LostConnection += OnLocalDataStoreLostConnection;
        }
Beispiel #3
0
        /// <summary>
        /// Called by the framework to initialize this tool.
        /// </summary>
        public override void Initialize()
        {
            base.Initialize();

            // this.ImageViewer.EventBroker.TileSelected += OnTileSelected;
            this.ImageViewer.EventBroker.DisplaySetChanged += OnDisplaySetChanged;

            _localDataStoreEventBroker = LocalDataStoreActivityMonitor.CreatEventBroker();
            _localDataStoreEventBroker.SopInstanceImported   += OnSopInstanceImported;
            _localDataStoreEventBroker.InstanceDeleted       += OnInstanceDeleted;
            _localDataStoreEventBroker.LocalDataStoreCleared += OnLocalDataStoreCleared;
        }
        public override void Start()
        {
            base.Start();

            _localDataStoreEventBroker = LocalDataStoreActivityMonitor.CreatEventBroker();
            _localDataStoreEventBroker.SopInstanceImported += OnSopInstanceImported;
            AimSettings.Default.PropertyChanged            += OnAimSettingsChanged;

            try
            {
                // Create extension points that use this component
                var xp = new AimAnnotationExtensionPoint();
                foreach (var obj in xp.CreateExtensions())
                {
                    var extension = (IAimAnnotationExtension)obj;
                    extension.Component = this;
                }
            }
            catch (NotSupportedException)
            {
            }
        }