Create/Search GUIListItem from GUIListControl (1 Viewer)

nuggie

Portal Member
June 12, 2009
12
0
Hi there,

is there any possibility to do something like with ListViews in Windows.Forms:

ListViewItem lvi = listView2.FindItemWithText(method.item.toString());

I want to do this with my MediaPortal Plugin:

GUIListItem gli = listControl.......(...)


I want to search the GUIListControl for a specified label and create an GUIListItem out of it, to change its parameters like IconImage and BigIconImage

Please help :)

Best regards
nuggie
 

nuggie

Portal Member
June 12, 2009
12
0
My solution until now:

foreach (GUIListItem gli in myList.ListItems)
{
if (gli.Label == "test")
}

not great, but works. If anybody have ideas for another solution: please post it :)

Thanks
:D

nuggie
 

Users who are viewing this thread

Top Bottom