Esempio n. 1
0
 public void Draw(GraphicsInterface graphics)
 {
     graphics.DrawRectangle(contained > 0 ? Color.Red : Color.Yellow, (float)xstart, (float)ystart, (float)xend - (float)xstart, (float)yend - (float)ystart, (float)((xend - xstart) * 0.001));
     foreach (var C in Children)
     {
         C.Draw(graphics);
     }
 }
Esempio n. 2
0
 public void Draw(GraphicsInterface graphics, bool drawcontained = true)
 {
     if (contained > 0 && drawcontained == false)
     {
     }
     else
     {
         graphics.DrawRectangle(contained > 0 ? Color.Red : Color.Yellow, xstart, ystart, xend - xstart - 1, yend - ystart - 1);
     }
     foreach (var C in Children)
     {
         C.Draw(graphics);
     }
 }