首页 新闻 会员 周边

c#关于重新测试"fail”项的问题

0
[已关闭问题] 关闭于 2017-04-08 22:09
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)”里面的代码?
 
某的主页 | 菜鸟二级 | 园豆:278
提问于:2017-04-06 16:33
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册