protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
Graphics g = e.Graphics;
g.SmoothingMode = SmoothingMode.AntiAlias;
g.FillRectangle(Brushes.White, ClientRectangle);
float cx = ClientRectangle.Width / 2f;
float cy = ClientRectangle.Height / 2f;
float ex = cx + (float)Math.Cos(-angle) * cx;
float ey = cy + (float)Math.Sin(-angle) * cy;
g.DrawLine(pen, cx, cy, ex, ey);
}