Exemple #1
0
        private void SetSelectedGraphic(ISelectableGraphic graphic)
        {
            var aimGraphic = graphic == null || graphic.ParentGraphic == null
                                                                                ? null
                                                                                : graphic.ParentGraphic as IAimGraphic;

            SelectedAnnotation = aimGraphic == null ? null : aimGraphic.AimAnnotation;
        }
Exemple #2
0
        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;
        }
Exemple #3
0
        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;
 }
		/// <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;
		}