Example #1
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);
				}
			}
		}
		private void OnGraphicSelectionChanged(object sender, GraphicSelectionChangedEventArgs e)
		{
			RoiGraphic deselectedGraphic = e.DeselectedGraphic as RoiGraphic;
			RoiGraphic selectedGraphic = e.SelectedGraphic as RoiGraphic;

			UnwatchRoiGraphic(deselectedGraphic);
			WatchRoiGraphic(selectedGraphic);

			OnAllPropertiesChanged();
		}
Example #3
0
		internal void OnGraphicSelectionChanged(GraphicSelectionChangedEventArgs args)
		{
			EventsHelper.Fire(_graphicSelectionChangedEvent, this, args);
		}