private void pictureBox1_Paint(object sender, PaintEventArgs e) { e.Graphics.DrawImage(imgHeap, 0, 0); if (timer1.Enabled) { myFigure.Draw(e.Graphics); } buttonMus.Focus(); }
private void pictureBox2_Paint(object sender, PaintEventArgs e) { nextFigure.Draw(e.Graphics); buttonMus.Focus(); }