IEnumerable <ButtonGridItem> selectedButtons(AnatomySelection selection) { foreach (var selected in selection.SelectedAnatomy) { ButtonGridItem item = buttonGridThumbs.findItemByUserObject(selected); if (item != null) { yield return(item); } } }
void anatomyController_SelectedAnatomyChanged(AnatomySelection anatomySelection) { Anatomy anatomy = anatomySelection.Anatomy; if (anatomy != null) { showWindow(anatomy, anatomyFinder.DisplayHintLocation, anatomyFinder.DeadZone); } else { closeUnpinnedWindow(); } }
void anatomyController_SelectedAnatomyChanged(AnatomySelection obj) { anatomyList.setSelection(selectedButtons(obj)); }