예제 #1
0
        private void OnGraphicSelectionChanged(object sender, GraphicSelectionChangedEventArgs e)
        {
            RoiGraphic deselectedGraphic = e.DeselectedGraphic as RoiGraphic;
            RoiGraphic selectedGraphic   = e.SelectedGraphic as RoiGraphic;

            UnwatchRoiGraphic(deselectedGraphic);
            WatchRoiGraphic(selectedGraphic);

            OnAllPropertiesChanged();
        }
예제 #2
0
 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);
         }
     }
 }
예제 #3
0
 internal void OnGraphicSelectionChanged(GraphicSelectionChangedEventArgs args)
 {
     EventsHelper.Fire(_graphicSelectionChangedEvent, this, args);
 }
예제 #4
0
 private void OnGraphicSelectionChanged(object sender, GraphicSelectionChangedEventArgs e)
 {
     SetSelectedGraphic(e.SelectedGraphic);
 }
예제 #5
0
 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");
 }
예제 #7
0
 private void OnGraphicSelectionChanged(object sender, GraphicSelectionChangedEventArgs e)
 {
     this.SetSelectedAnnotation(e.SelectedGraphic);
 }