Я попробовал следующий код :
Код: Выделить всё
string flows_path = "C:\\temp\\Failed Electricity flows\\";
List flows_loaded = new List();
foreach (string s in Directory.GetFiles(flows_path, "*.rcv").Select(Path.GetFileName))
{
ListViewItem new_item = new ListViewItem(s, 1);
ListViewItem.ad
// Add the flow names to the list
flows_loaded.Add(new_item);
}
Код: Выделить всё
ListViewItem("My Item")Подробнее здесь: https://stackoverflow.com/questions/152 ... -key-value
Мобильная версия