Are you just looking for selection code? (Don't really understand what you are requesting?!) This code will highlight (as an outline) your selection on the target layer using a filter clause ("Key = whatever") in accordance with the passed esriSelectionResultEnum flag:
public static void SelectBy(
IActiveView view,
ILayer2 targetLayer,
string filterClause,
esriSelectionResultEnum selectionResult
)
{
IFeatureSelection featureSelection = targetLayer as IFeatureSelection;
if (featureSelection == null) return;
IQueryFilter queryFilter = new QueryFilterClass();
queryFilter.WhereClause = filterClause;
IColor selectColor = Local.ColorToIColor(System.Drawing.Color.OrangeRed);
ISimpleFillSymbol fillSymbol = new SimpleFillSymbolClass();
fillSymbol.Color = selectColor;
ISimpleLineSymbol outlineSymbol = new SimpleLineSymbolClass();
outlineSymbol.Color = selectColor;
outlineSymbol.Width = 2;
fillSymbol.Outline = outlineSymbol;
fillSymbol.Style = esriSimpleFillStyle.esriSFSHollow;
featureSelection.SelectionSymbol = fillSymbol as ISymbol;
featureSelection.SetSelectionSymbol = true;
featureSelection.SelectFeatures(queryFilter, selectionResult, false);
view.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, view.FocusMap, null);
}
If you know the data this will work. If you need to select by shape that is different.