{Total=0.0F; f2, f1=0.0F; rd=new Random (); pen=new Pen (Color.Black, tol_lin); rect=new Rectangle (tol_lin, tol_lin ,. Width/2 * tol_lin, ClientSize.Height - 2 * tol_lin); (float lval in b) +=lval; i=0; (float lval in b)
{= 360 * lval/Total; .Graphics.FillPie (brsh [i], rect, f1, f2) ;. Graphics.DrawPie (pen, rect, f1, f2); +=f2 ; l=new Label () ;. AutoSize=true; .Font=new Font ( Arial raquo ;, 14, FontStyle.Italic) ;. Location=new Point (5, (i + 1) * 30); (k- 2 gt; i)
{. Text=a [i] + = Raquo; + B [i] .ToString () ;. BackColor=cl [i];
}. Controls.Add (l); ++;
}. AutoSize=true; .Location=new Point (ClientSize.Width - groupBox1.Width, 0);
}
}
}