private void buttonInsertZero_Click(object sender, EventArgs e) { string gap; if (checkBoxGap.Checked) { gap = " "; } else { gap = ""; } byte[] data = getInputBytes(); if (data == null) { return; } BitArray new_bits = Assist.HdlcInsertZeroEncode(data); byte[] new_data = Assist.BitsLsbToBytes(new_bits); textBoxInput.Text = Assist.BytesToBitsLsbString(new_data, gap); currentCode = CODE_BIT; currentBitOrder = BIT_LSB_FIRST; radioButtonBitLsb.Checked = true;//注意这里引起bit显示触发 radioButtonBit.Checked = true; }