GUIFacadeViewControl lock my HTPC (1 Viewer)

kroko

Portal Pro
February 4, 2007
428
420
55
Itzehoe
Home Country
Germany Germany
Hi,

I'm just doing some facade view for a new plugin. I get the feeling th facade is locking my system.
I have a datatable with data and want to add those to the facade like this :

for (int i = 0; i < data.Rows.Count; i++)
{
DataRow row = data.Rows;

GUIListItem item = new GUIListItem();
item.Label = row["Name"].ToString();
item.IsFolder = false;

item.Path = row["Mega"].ToString();

item.IconImageBig = "DefaultMyradioStreamBig.png";
item.IconImage = "DefaultMyradioStream.png";

string thumbnail = row["Cover"].ToString();

if (thumbnail != "")
{
item.IconImageBig = thumbnail;
item.IconImage = thumbnail;
item.ThumbnailImage = thumbnail;
}
facadeView.Add(item);
}

I have about 200 rows, all with covers from the INet. Even then the control is visible about 5-10 sec it seems the pc is still busy fetching covers from the INet. Keystrokes are very slow the next 40-60 sec. Is there another way to add the items not using that much resource ? Of course It could be done in a different thread, but...

Regards
kroko
 

Users who are viewing this thread

Top Bottom