If I understand you correctly you want to display the icons in the ImageList together with the corresponding files in the ListView. To do this you only need to point the SmallImageList
or LargeImageList
attribute of your ListView object to the ImageList (depending on the icon display mode your ListView uses).
private void UpdateListView() {
ImageList IconList = new ImageList();
IconList.Images.Add(
BlackFox.Win32.Icons.IconFromExtensionShell(".*",
BlackFox.Win32.Icons.SystemIconSize.Small));
YourListview.SmallImageList = IconList;
//Add the items to your Listview
}
Don't forget to assign the icons in the ImageList to the items in the ListView:
MyListItem.ImageIndex = 0;
or
MyListItem.ImageKey = "MyImageName";
or add them right away when you add your ListItems:
ListViewItem MyListItem= new ListViewItem("ItemName", "MyImageName");
ListViewItem MyListItem2= new ListViewItem("ItemName2", int ImageIndex);