private void pic_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; rect.draw(g); sq.draw(g); }