IList<AndroidTools2WebService.ListStorage> webListStorage = new List<AndroidTools2WebService.ListStorage>(); //这是定义 for (int i = 0; i < webListStorage.Count; i++) { if (webListStorage[i] == null) continue; string tempId = webListStorage[i].ResourceId.ToString(); if (tempId.Equals(id)) { //移除控件中的选中项 lvImageSequence.Items.RemoveByKey(id);
int a = webListStorage.IndexOf(webListStorage[i]); //webListStorage = tempList; webListStorage.RemoveAt(a);
{
if (webListStorage[i] == null)
continue;
string tempId = webListStorage[i].ResourceId.ToString();
if (tempId.Equals(id))
{
//移除控件中的选中项
lvImageSequence.Items.RemoveByKey(id);
int a = webListStorage.IndexOf(webListStorage[i]); //webListStorage = tempList;
webListStorage.RemoveAt(a);
break;
}
}
}
}
}
这是后台代码