private void SetSelectedGraphic(ISelectableGraphic graphic) { var aimGraphic = graphic == null || graphic.ParentGraphic == null ? null : graphic.ParentGraphic as IAimGraphic; SelectedAnnotation = aimGraphic == null ? null : aimGraphic.AimAnnotation; }
private void SetSelectedGraphic(ISelectableGraphic graphic, string defaultText) { IAimGraphic aimGraphic = graphic == null || graphic.ParentGraphic == null ? null : graphic.ParentGraphic as IAimGraphic; this.SelectedAnnotation = aimGraphic == null ? null : aimGraphic.AimAnnotation; }
private void SetSelectedAnnotation(ISelectableGraphic graphic) { IAimGraphic aimGraphic = graphic == null || graphic.ParentGraphic == null ? null : graphic.ParentGraphic as IAimGraphic; SelectedAnnotationUid = aimGraphic == null ? null : aimGraphic.AnnotationUid; }
/// <summary> /// Intializes a new instance of <see cref="GraphicSelectionChangedEventArgs"/>. /// </summary> /// <param name="selectedGraphic">The graphic that was selected. Can be <b>null</b> if there is no currently selected graphic.</param> /// <param name="deselectedGraphic">The graphic that was previously selected. Can be <b>null</b> if there was previously no selected graphic.</param> internal GraphicSelectionChangedEventArgs(ISelectableGraphic selectedGraphic, ISelectableGraphic deselectedGraphic) { _selectedGraphic = selectedGraphic; _deselectedGraphic = deselectedGraphic; }