/**
  * This method was created by a SmartGuide.
  */
 public void setGuards(Polygon p)
 {
     int curColor = 0;
     setupColors(p);
     int minColorClass = getMinColorClass();
     for (int j = 0; j < p.vertices.Count; j++)
     {
         curColor = (int)p.vertices[j].vertexColor;
         if (curColor == minColorClass)
         {
             p.vertices[j].IsGuard = true;
         }
     }
     p.OnPropertyChanged("vertices");
     return;
 }