private void afis_bin_bin_w(Graphics desen, int px0, int py0, int bit_w, int nr_biti, bool[] vector_binar, string [] nume_biti) { System.Drawing.Pen creion; System.Drawing.SolidBrush pens_verde; System.Drawing.SolidBrush pens_rosie; System.Drawing.SolidBrush pens_gri; System.Drawing.Font font_nina; creion = new System.Drawing.Pen(System.Drawing.Color.Gray, 2); pens_verde = new System.Drawing.SolidBrush(System.Drawing.Color.Lime); pens_rosie = new System.Drawing.SolidBrush(System.Drawing.Color.Red); pens_gri = new System.Drawing.SolidBrush(System.Drawing.Color.LightGray); font_nina = new System.Drawing.Font("Nina", 12); int x = px0 + bit_w; int y = py0 + bit_w; int i; for (i = nr_biti - 1; i >= 0; i--) { desen.DrawEllipse(creion, x - 1, y - 1, bit_w + 2, bit_w + 2); desen.DrawString(nume_biti[i].ToString(), font_nina, pens_rosie, x, y-2*bit_w); if (vector_binar[i]) desen.FillEllipse(pens_verde, x, y, bit_w, bit_w); else desen.FillEllipse(pens_gri, x, y, bit_w, bit_w); x += 2 * bit_w; } }