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
MediaPortal 1 Plugins
How to display waiting circle?
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="Vattenmelon" data-source="post: 351255" data-attributes="member: 51804"><p>Thx guys.. the solution for me was</p><p>[CODE]</p><p> protected override void OnPageLoad()</p><p> {</p><p> GUIWaitCursor.Init();</p><p> GUIWaitCursor.Show();</p><p> _workerCompleted = false; //class member boolean</p><p></p><p> BackgroundWorker worker = new BackgroundWorker();</p><p></p><p> worker.DoWork += new DoWorkEventHandler(createList);</p><p> worker.RunWorkerAsync(new object());</p><p></p><p> while (_workerCompleted == false) GUIWindowManager.Process();</p><p> GUIWaitCursor.Hide();</p><p> </p><p> }</p><p></p><p> private void createList(object sender, DoWorkEventArgs e)</p><p> {</p><p> Artists artists = cAmpache.GetAllArtists();</p><p> foreach (Artist item in artists.Items)</p><p> {</p><p> GUIListItem i = new GUIListItem(item.name);</p><p> i.TVTag = item;</p><p> this.facadeView.Add(i);</p><p> }</p><p> _workerCompleted = true;</p><p> }</p><p></p><p>[/CODE]</p><p></p><p>In a perfect world I would like the to not have the _workerCompleted = true in the createList method..but the most important for the moment was that it worked. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Vattenmelon, post: 351255, member: 51804"] Thx guys.. the solution for me was [CODE] protected override void OnPageLoad() { GUIWaitCursor.Init(); GUIWaitCursor.Show(); _workerCompleted = false; //class member boolean BackgroundWorker worker = new BackgroundWorker(); worker.DoWork += new DoWorkEventHandler(createList); worker.RunWorkerAsync(new object()); while (_workerCompleted == false) GUIWindowManager.Process(); GUIWaitCursor.Hide(); } private void createList(object sender, DoWorkEventArgs e) { Artists artists = cAmpache.GetAllArtists(); foreach (Artist item in artists.Items) { GUIListItem i = new GUIListItem(item.name); i.TVTag = item; this.facadeView.Add(i); } _workerCompleted = true; } [/CODE] In a perfect world I would like the to not have the _workerCompleted = true in the createList method..but the most important for the moment was that it worked. :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
How to display waiting circle?
Contact us
RSS
Top
Bottom