if
(B.Contains(A))
{
this
.dataGridView1.Rows[row].Cells[2].Value = A;
this
.dataGridView1.Rows[row].Cells[3].Value =
"pass"
;
break
;
}
else
{
this
.dataGridView1.Rows[row].Cells[2].Value =
"No match message"
;
this
.dataGridView1.Rows[row].Cells[3].Value =
"fail"
;
DialogResult dr;
dr = MessageBox.Show(
"Item Failed,Try again?"
,
""
,
MessageBoxButtons.AbortRetryIgnore,MessageBoxIcon.Question);
}
(1)部分代码和截图如上。PS:数据通过串口接收:
private void Comm_DataReceived(object sender, SerialDataReceivedEventArgs e)
(2)当出现测试项为"fail"的时候,想再重新测试(N次),而且只单单测试这一项。那么,我该怎么处理Button“重试(R)”里面的代码?