新人求帮忙指正代码
设定按钮的代码:
private void button4_Click(object sender, EventArgs e)
{
Thread.Sleep(500);
if (comboBox6.Text == "无 NONE")
hexSend("FC00990F00");
else if (comboBox6.Text == "奇 ODD")
hexSend("FC00990F01");
else
hexSend("FC00990F02");
}
读取按钮的代码:
private void button5_Click(object sender, EventArgs e)
{
hexSend("FC009910");
Thread.Sleep(500);
if (hexRecv() == "00")
textBox2.Text = "无 NONE";
else if (hexRecv() == "01")
textBox2.Text = "奇 ODD";
else
textBox1.Text = "偶 EVEN";
}
怎么把设定的值读取出来呢?这段代码怎么写?