示例#1
0
 void PaintCages(PaintContext context, Pen thick)
 {
     for (int x = 0; x < Cells - 1; ++x)
     {
         for (int y = 0; y < Cells; ++y)
         {
             if (CageAt(x, y) != CageAt(x + 1, y))
             {
                 context.DrawVerticalLine(x, y, thick);
             }
         }
     }
     for (int x = 0; x < Cells; ++x)
     {
         for (int y = 0; y < Cells - 1; ++y)
         {
             if (CageAt(x, y) != CageAt(x, y + 1))
             {
                 context.DrawHorizontalLine(x, y, thick);
             }
         }
     }
 }