private void btnLiga_Click(object sender, EventArgs e) { bits.setBit1(int.Parse(txtBit.Text)); label1.Text = Convert.ToString(bits.getBits()); label2.Text = Convert.ToString(bits.getBits(), 2); label3.Text = Convert.ToString(bits.getBits(), 16).ToUpper(); lblBit1.Text = (bits.getBits(1)) ? "1" : "0"; lblBit2.Text = (bits.getBits(2)) ? "1" : "0"; lblBit3.Text = (bits.getBits(3)) ? "1" : "0"; lblBit4.Text = (bits.getBits(4)) ? "1" : "0"; lblBit5.Text = (bits.getBits(5)) ? "1" : "0"; lblBit6.Text = (bits.getBits(6)) ? "1" : "0"; lblBit7.Text = (bits.getBits(7)) ? "1" : "0"; lblBit8.Text = (bits.getBits(8)) ? "1" : "0"; }
private void radLamp1On_Click(object sender, EventArgs e) { bits.setBit1(int.Parse("1")); atualizaBits(); }
private void btnLiga_Click(object sender, EventArgs e) { bits.setBit1(int.Parse(txtBit.Text)); }