/// <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; }
public override void Initialize() { base.Initialize(); this.Context.SelectionChanged += OnSelectedStudyChanged; _localDataStoreEventBroker = LocalDataStoreActivityMonitor.CreatEventBroker(); _localDataStoreEventBroker.Connected += OnLocalDataStoreConnected; _localDataStoreEventBroker.LostConnection += OnLocalDataStoreLostConnection; }
/// <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; }
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); }
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) { } }