There is a piece of code:
protected override void OnPaint(PaintEventArgs e) { int n = 5; // число вершин double R1 = 25, R2 = 50; // радиусы double alpha = 30; // поворот double x0 = 60, y0 = 60; // центр PointF[] points = new PointF[2 * n + 1]; double a = alpha, da = Math.PI / n, l; for (int k = 0; k < 2 * n + 1; k++) { l = k % 2 == 0 ? R2 : R1; points[k] = new PointF((float)(x0 + l * Math.Cos(a)), (float)(y0 + l * Math.Sin(a))); a += da; } e.Graphics.DrawLines(Pens.Black, points); } What needs to be done, what would it be done by pressing a button on the form?