日期:2014-05-17 浏览次数:20544 次
MatchCollection matches = rx.Matches(htmlSource);
foreach (Match match in matches)
{
this.Invoke(new MethodInvoker(delegate() { lstViemItemCount = listView1.Items.Count; }));
//这里开始循环
for (int i = 0; i < lstViemItemCount; i++)
{
if (listView1.items[i].SubItems[1].Text.ToString() == match.Value.ToString())//listView1.items[i].SubItems[1].Text.ToString()这里要如何 Invoke????????
{
this.Invoke(new MethodInvoker(delegate() { tsslStatus.Text = "状态:目标已存在"; }));
isExsit = true;
continue;
}
}
}
// if (listView1.items[i].SubItems[1].Text.ToString() == match.Value.ToString())
//以上这句如何Invoke呢?