/** 执行按钮触发 */ private void btnTransExecute03_Click(object sender, EventArgs e) { if (radioButton03_01.Checked) { textTransResult03.Text = MyTools.Hex2ASCII(textTransData03.Text, 1); } else if (radioButton03_02.Checked) { textTransResult03.Text = MyTools.Hex2ASCII(textTransData03.Text, 0); } else { MessageBox.Show("请选择是否追加空格!", "消息提示框"); } }