日期:2014-05-17 浏览次数:20498 次
/// <summary> /// 将数据存储到lv里面 /// </summary> private void refreshList(List<defInfo> list) { this.lv_Show.Items.Clear(); for (int i = 0; i < list.Count; i++) { ListViewItem lvi = new ListViewItem(); lvi.SubItems.Add(list[i].defName); lvi.SubItems.Add(list[i].defValue); this.lv_Show.Items.Add(lvi); } this.lv_Show.Refresh(); }