private void textBox2_TextChanged_1(object sender, EventArgs e) { ConversorDecForBin conv2 = new ConversorDecForBin(int.Parse(textBox2.Text), 2, 8); int[] vetBinario2 = new int[8]; vetBinario2 = conv2.ConverteDB(); ConversorBin4Boll convBool2 = new ConversorBin4Boll(vetBinario2); convbool_2 = convBool2.CoverteBinToBoll(); string juntarInt2 = ""; for (int i = 0; i < 8; i++) { juntarInt2 += vetBinario2[i].ToString(); } textBox4.Text = juntarInt2; textBox4.Show(); }
private void textBox1_TextChanged_1(object sender, EventArgs e) { ConversorDecForBin conv1 = new ConversorDecForBin(int.Parse(textBox1.Text), 2, 8); int[] vetBinario1 = new int[8]; vetBinario1 = conv1.ConverteDB(); ConversorBin4Boll convBool1 = new ConversorBin4Boll(vetBinario1); convbool_1 = convBool1.CoverteBinToBoll(); string juntarInt = ""; for (int i = 0; i < 8; i++) { juntarInt += vetBinario1[i].ToString(); } textBox3.Text = juntarInt; textBox3.Show(); }