- Timestamp:
- 01/08/11 02:06:12 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Core.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r5237 r5238 207 207 } 208 208 protected virtual IEnumerable<ListViewItem> GetListViewItemsForItem(T item) { 209 return itemListViewItemMapping[item]; 209 if (item == null) { 210 List<ListViewItem> listViewItems = new List<ListViewItem>(); 211 foreach (ListViewItem listViewItem in itemsListView.Items) { 212 if (listViewItem.Tag == null) listViewItems.Add(listViewItem); 213 } 214 return listViewItems; 215 } else { 216 return itemListViewItemMapping[item]; 217 } 210 218 } 211 219 -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r5237 r5238 210 210 } 211 211 protected virtual IEnumerable<ListViewItem> GetListViewItemsForItem(T item) { 212 return itemListViewItemMapping[item]; 212 if (item == null) { 213 List<ListViewItem> listViewItems = new List<ListViewItem>(); 214 foreach (ListViewItem listViewItem in itemsListView.Items) { 215 if (listViewItem.Tag == null) listViewItems.Add(listViewItem); 216 } 217 return listViewItems; 218 } else { 219 return itemListViewItemMapping[item]; 220 } 213 221 } 214 222
Note: See TracChangeset
for help on using the changeset viewer.