private void MainForm_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
SolidBrush brushball = new SolidBrush(Color.Pink);
e.Graphics.FillEllipse(brushball, Ball);
SolidBrush brushpad = new SolidBrush(Color.Yellow);
e.Graphics.FillRectangle(brushpad, Pad);
}