private void MarkerAction_Execute(ExecuteEventArgs e) { NavDestination destination; bool collect; GetMarkerActionProperties(e.Action, out destination, out collect); IMarker marker = GetTargetMarker(destination); if (marker != null) { marker.RestorePosition(); ShineLocatorBeacon(marker); if (collect) { CodeRush.Markers.Remove(marker); } } }