public void renren_GetFriendsCompletedHandler(object sender, GetFriendsCompletedEventArgs e)
        {
            disableRect.Visibility = Visibility.Collapsed;
            down_Bar.Visibility = Visibility.Collapsed;
            down_TBlk.Visibility = Visibility.Collapsed;
            if (e.Error != null)
            {
                MessageBox.Show(e.Error.Message);
                NavigationService.GoBack();
            }
            else
            {

                FriendList_LBox.ItemsSource = e.Result;
            }
        }
 public void renren_GetFriendsCompletedHandler(object sender, GetFriendsCompletedEventArgs e)
 {
     m_progressIndicatorHelper.PopTask();
     if (e.Error != null)
     {
         MessageBox.Show(e.Error.Message);
         NavigationService.GoBack();
     }
     else
     {
         if (e.Result.Count == 0)
         {
             return;
         }
         if (e.Result.Count < MAX_PER_PAGE)
             m_bIsLastPage = true;
         else
             m_bIsLastPage = false;
         Deployment.Current.Dispatcher.BeginInvoke(() =>
         {
             SearchResult.Clear();
             foreach (Friend friend in e.Result)
             {
                 RenrenSearchedMan man = new RenrenSearchedMan();
                 man.id = friend.id.ToString();
                 man.info = "";
                 man.name = friend.name;
                 man.isFriend = "1";
                 man.tinyurl = friend.tinyurl;
                 SearchResult.Add(man);
             }
             ScrollViewer v = VisualTreeHelper.GetChild(this.ResultListBox, 0) as ScrollViewer;
             v.ScrollToVerticalOffset(0);
         });
     }
 }