Пример #1
0
 public void OnUpdateUsersFriendsCompleted(UsersFriendsRequest request, List<Song> FeedItems)
 {
   if (request.Equals(_lastUsersFriendsRequest))
   {
     if (_usersFriends != null)
     {
       _usersFriends.Clear();
     }
     for (int i = 0; i < FeedItems.Count; i++)
     {
       _usersFriends.Add(FeedItems[i].Artist);
       if (i == _configListEntryCount - 1)
       {
         break;
       }
     }
     if (_usersFriends.Count > 0)
     {
       // btnChooseFriend.Disabled = false;
       btnChooseFriend.Label = _usersFriends[0];
     }
   }
   else
   {
     Log.Warn("NowPlaying.OnUpdateUsersFriendsCompleted: unexpected response for request: {0}", request.Type);
   }
 }