Example #1
0
 private void ShowDots(bool show) //V137
 {
     if (WedstrijdMode)
     {
         return;
     }
     if (show)
     {
         foreach (Zet legalZet in computer.DoeEenZet(zet.van))
         {
             ShowDot(legalZet);
         }
     }
     else
     {
         ShapeCollection sc = shapeContainer.Shapes;
         for (int i = sc.Count - 1; i >= 0; i--)
         {
             if (((Shape)sc.get_Item(i)).Name == "DOT")
             {
                 sc.RemoveAt(i);
             }
         }
     }
 }