private void afis_bin_bin_vw(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", 10); int x = px0 + bit_w; int y = py0 + bit_w; int i; for (i = 0; i < nr_biti; 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 + 2 * bit_w, y); 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); y += 2 * bit_w; } }