private void VisualizeTargets(Dictionary<IPoint, int> dict)
{
// visualize targets
foreach (var targetPoint in TargetAddInPoints)
{
if (dict.ContainsKey(targetPoint.Point))
{
// add green circle
AddGraphicToMap(targetPoint.Point, new RgbColorClass() { Green = 255 }, size: 10);
// add label
AddTextToMap(dict[targetPoint.Point].ToString(), targetPoint.Point, new RgbColorClass(), size: 10);
}
else
{
// add red circle
AddGraphicToMap(targetPoint.Point, new RgbColorClass() { Red = 255 }, size: 10);
}
}
}