public void DrawRectangles(Graphics g)
 {
     Rectangles.ForEach(rect => rect.Draw(g));
 }