public override void Activate()
 {
     if (locker == null && !is_activating)
     {
         is_activating = true;
         ThreadAssist.Spawn(delegate {
             try
             {
                 locker = new MP3tunes.Locker(String.Empty);
                 locker.Login(this.plugin.Username, this.plugin.Password);
                 ArrayList trs  = locker.GetTracks();
                 IEnumerator en = trs.GetEnumerator();
                 while (en.MoveNext())
                 {
                     LockerTrackInfo lti = new LockerTrackInfo((MP3tunes.Track)en.Current);
                     tracks.Add(lti);
                 }
                 OnUpdated();
             }
             catch (Exception e)
             {
                 LogCore.Instance.PushError(Catalog.GetString("Could not load Music Locker"), e.Message);
             }
             is_activating = false;
         });
     }
 }
 public override void Activate()
 {
     if(locker == null && !is_activating)
     {
         is_activating = true;
         ThreadAssist.Spawn(delegate {
             try
             {
                 locker = new MP3tunes.Locker( String.Empty );
                 locker.Login( this.plugin.Username, this.plugin.Password );
                 ArrayList trs = locker.GetTracks();
                 IEnumerator en = trs.GetEnumerator();
                 while( en.MoveNext() )
                 {
                     LockerTrackInfo lti = new LockerTrackInfo( (MP3tunes.Track)en.Current );
                     tracks.Add( lti );
                 }
                 OnUpdated();
             }
             catch( Exception e )
             {
                 LogCore.Instance.PushError(Catalog.GetString("Could not load Music Locker"), e.Message);
             }
             is_activating = false;
         });
     }
 }