I recommend you complete the Building Add-ins for ArcGIS Desktop walk-through then look at some of the code snippets that are availalbe to developoers.
To address your question; You need to first isolate the geometry of the feature you want to use to do the selection, locate and set the destination feature class, create a spatial filter set the initial feature geometry to it and use the spatial feature to make the selection. Lastly yo will need to call the refresh method the draw the selection on map.
Here is a similar example (VB.NET) I use to select features on a specific layer in a OnMouseUp event. In this case instead of using a feature geometry to make the selection, the spatial filter input geometry is created from either the mouse location point (in case of a single click) or a rectangle drawn with the mouse on screen. The actual procedure for selecting features on a particular layer would be similar in your case - using a spatial filter object.
Protected Overrides Sub OnMouseUp(ByVal arg As ESRI.ArcGIS.Desktop.AddIns.Tool.MouseEventArgs)
On Error GoTo Trap
Dim mxDoc As ESRI.ArcGIS.ArcMapUI.IMxDocument = My.ArcMap.Document
If arg.Button = Windows.Forms.MouseButtons.Left Then
Dim pEnv As ESRI.ArcGIS.Geometry.IEnvelope = New ESRI.ArcGIS.Geometry.Envelope
'Dim pGeoFeatureLayer As ESRI.ArcGIS.Carto.IGeoFeatureLayer
Dim pFeatureSelection As ESRI.ArcGIS.Carto.IFeatureSelection
Dim pSpatialFilter As ESRI.ArcGIS.Geodatabase.ISpatialFilter = New ESRI.ArcGIS.Geodatabase.SpatialFilter
Dim pLayer As ESRI.ArcGIS.Carto.ILayer = Nothing
Dim pFeatureLayer As ESRI.ArcGIS.Carto.IFeatureLayer = Nothing
Dim point As ESRI.ArcGIS.Geometry.IPoint = TryCast(m_focusMap.ScreenDisplay.DisplayTransformation.ToMapPoint(arg.X, arg.Y), ESRI.ArcGIS.Geometry.IPoint)
Dim bFull As Boolean
pLayer = mxDoc.SelectedLayer
pFeatureLayer = pLayer
If Not pFeatureLayer.Selectable Then pFeatureLayer.Selectable = True 'override default selectibility to true
If (Not pLayer Is Nothing And TypeOf pLayer Is ESRI.ArcGIS.Carto.IGeoFeatureLayer) Or _
(Not pLayer Is Nothing And TypeOf pLayer Is ESRI.ArcGIS.Carto.IAnnotationLayer) Then
pFeatureSelection = pFeatureLayer
If Not m_pFeedbackEnv Is Nothing Then
pEnv = TryCast(m_pFeedbackEnv.Stop(), ESRI.ArcGIS.Geometry.IEnvelope)
With pSpatialFilter
.GeometryField = pFeatureLayer.FeatureClass.ShapeFieldName
If (Not pEnv Is Nothing) And (pEnv.IsEmpty = False) Then
.Geometry = pEnv
Else
.Geometry = point
End If
.SpatialRel = 1
End With
Else
With pSpatialFilter
.GeometryField = pFeatureLayer.FeatureClass.ShapeFieldName
.Geometry = point
.SpatialRel = 1
End With
End If
If Not arg.Shift Then
If pFeatureLayer.FeatureClass.FeatureCount(pSpatialFilter) > 0 Then
pFeatureSelection.SelectFeatures(TryCast(pSpatialFilter, ESRI.ArcGIS.Geodatabase.ISpatialFilter), 0, False)
Else
My.ArcMap.Document.FocusMap.ClearSelection()
''bFull = True
End If
Else
pFeatureSelection.SelectFeatures(TryCast(pSpatialFilter, ESRI.ArcGIS.Geodatabase.ISpatialFilter), 1, False)
End If
'Refresh the selections
m_lineFeedback.Stop() 'stop line feedback
m_lineFeedback = Nothing
m_pFeedbackEnv = Nothing 'MUST CANCEL FEEDBACK BEFORE REFRES ELSE CRASH WILL OCCUR
m_isMouseDown = False
'm_focusMap.PartialRefresh(ESRI.ArcGIS.Carto.esriViewDrawPhase.esriViewGeoSelection, mxDoc.SelectedLayer, mxDoc.ActiveView.Extent.Envelope)
m_focusMap.Refresh()
Else
'if Layer is not selected or not a golayer use default selection across all layers
If m_pFeedbackEnv IsNot Nothing Then
pEnv = m_pFeedbackEnv.Stop()
If pEnv IsNot Nothing Then
With My.ArcMap.Document.FocusMap
.ClearSelection() 'clear previous selection before making new
.SelectByShape(pEnv, Nothing, False)
End With
End If
End If
m_lineFeedback.Stop() 'stop line feedback
m_lineFeedback = Nothing
m_pFeedbackEnv = Nothing
m_isMouseDown = False
'm_focusMap.PartialRefresh(ESRI.ArcGIS.Carto.esriViewDrawPhase.esriViewGeoSelection, mxDoc.SelectedLayer, mxDoc.ActiveView.Extent.Envelope)
m_focusMap.Refresh()
End If
End If
Exit Sub
Trap:
'MsgBox(Err.Description)
m_isMouseDown = False
m_lineFeedback = Nothing
m_pFeedbackEnv = Nothing
End Sub