home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
GUIFacadeViewControl lock my HTPC
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="kroko" data-source="post: 378794" data-attributes="member: 45719"><p>Hi,</p><p></p><p>I'm just doing some facade view for a new plugin. I get the feeling th facade is locking my system.</p><p>I have a datatable with data and want to add those to the facade like this :</p><p></p><p> for (int i = 0; i < data.Rows.Count; i++)</p><p> {</p><p> DataRow row = data.Rows<em>;</em></p><p><em></em></p><p><em> GUIListItem item = new GUIListItem();</em></p><p><em> item.Label = row["Name"].ToString();</em></p><p><em> item.IsFolder = false;</em></p><p><em></em></p><p><em> item.Path = row["Mega"].ToString();</em></p><p><em></em></p><p><em> item.IconImageBig = "DefaultMyradioStreamBig.png";</em></p><p><em> item.IconImage = "DefaultMyradioStream.png";</em></p><p><em></em></p><p><em> string thumbnail = row["Cover"].ToString();</em></p><p><em></em></p><p><em> if (thumbnail != "")</em></p><p><em> {</em></p><p><em> item.IconImageBig = thumbnail;</em></p><p><em> item.IconImage = thumbnail;</em></p><p><em> item.ThumbnailImage = thumbnail;</em></p><p><em> }</em></p><p><em> facadeView.Add(item);</em></p><p><em> }</em></p><p><em></em></p><p><em>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...</em></p><p><em></em></p><p><em>Regards</em></p><p><em>kroko</em></p></blockquote><p></p>
[QUOTE="kroko, post: 378794, member: 45719"] 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[i]; 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[/i] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
GUIFacadeViewControl lock my HTPC
Contact us
RSS
Top
Bottom