private void button3_Click(object sender, EventArgs e) { if (this.button3.Text == "开始答题") { //rbtnet_.openModule(true); bool bRes = rbtnet_.sendStartAnswer(0, 0, IntPtr.Zero); if (bRes) { this.button3.Text = "停止答题"; } else { MessageBox.Show("发送开始答题失败"); } this.label4.Text = "调用主观题开始答题接口,手写板LED显示“开始答题”"; } else if (this.button3.Text == "停止答题") { rbtnet_.sendStopAnswer(); this.button3.Text = "结束答题"; this.label4.Text = "调用停止答题命令,手写板LED显示“已停止答题”"; } else { rbtnet_.sendEndAnswer(); this.button3.Text = "开始答题"; this.label4.Text = "恢复非答题状态"; } }
private void button_stop_Click(object sender, EventArgs e) { rbtnet_.sendStopAnswer(); foreach (var item in dicMac2DrawForm_) { item.Value.UpdateJDNum(0); } }