private void OnGraphicSelectionChanged(object sender, GraphicSelectionChangedEventArgs e) { RoiGraphic deselectedGraphic = e.DeselectedGraphic as RoiGraphic; RoiGraphic selectedGraphic = e.SelectedGraphic as RoiGraphic; UnwatchRoiGraphic(deselectedGraphic); WatchRoiGraphic(selectedGraphic); OnAllPropertiesChanged(); }
private void OnGraphicSelectionChanged(object sender, GraphicSelectionChangedEventArgs e) { if (e.SelectedGraphic != null) { IPresentationImage image = e.SelectedGraphic.ParentPresentationImage; IOverlayGraphicsProvider overlayGraphicsProvider = image as IOverlayGraphicsProvider; if (overlayGraphicsProvider != null) { ShowAnglesToolCompositeGraphic compositeGraphic = (ShowAnglesToolCompositeGraphic)CollectionUtils.SelectFirst(overlayGraphicsProvider.OverlayGraphics, g => g is ShowAnglesToolCompositeGraphic); if (compositeGraphic == null) { overlayGraphicsProvider.OverlayGraphics.Add(compositeGraphic = new ShowAnglesToolCompositeGraphic(this)); } compositeGraphic.Select(e.SelectedGraphic); } } }
internal void OnGraphicSelectionChanged(GraphicSelectionChangedEventArgs args) { EventsHelper.Fire(_graphicSelectionChangedEvent, this, args); }
private void OnGraphicSelectionChanged(object sender, GraphicSelectionChangedEventArgs e) { SetSelectedGraphic(e.SelectedGraphic); }
private void OnGraphicSelectionChanged(object sender, GraphicSelectionChangedEventArgs e) { this.SetSelectedGraphic(e.SelectedGraphic, e.SelectedGraphic == null ? null : (e.SelectedGraphic.ParentGraphic as IAimGraphic == null ? "IS NOT AIM!" : "IS AIM!")); }
private void OnGraphicSelectionChanged(object sender, GraphicSelectionChangedEventArgs e) { NotifyPropertyChanged("AnnotationModuleEnabled"); NotifyPropertyChanged("CreateAnnotationEnabled"); }
private void OnGraphicSelectionChanged(object sender, GraphicSelectionChangedEventArgs e) { this.SetSelectedAnnotation(e.SelectedGraphic); }