public void UpdateColors(Rectangle pointrect)
 {
     for (int i = 0; i < MapPoints.Count; i++)
     {
         GISMapPoint test = MapPoints[i] as GISMapPoint;
         if (pointrect.Equals(test.pointrect) && pointrect != null)
         {
             test.pointrect.Stroke = new SolidColorBrush(Colors.Wheat);
             test.pointrect.Fill = new SolidColorBrush(Colors.Blue);
         }
         else // not the selected polygon... reset it's color
         {
             test.pointrect.Stroke = new SolidColorBrush(Colors.Gold);
             test.pointrect.Fill = new SolidColorBrush(Colors.Maroon);
         }
     }
 }