public void renren_GetCurUserInfoCompletedHandler(object sender,GetUserUidCompletedEventArgs 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 { UserDetails user = new UserDetails(); user = e.Result; ObservableCollection<UserDetails> User_List = new ObservableCollection<UserDetails>() { user }; UserList_Box.ItemsSource = User_List; } }
public void renren_GetCurUserInfoCompletedHandler(object sender, GetUserUidCompletedEventArgs e) { if (e.Error != null) { MessageBox.Show(e.Error.Message); NavigationService.GoBack(); } else { UserDetails user = new UserDetails(); user = e.Result; CurrentNickName = user.name; CurrentAvatar = user.headurl; PreferenceHelper.SetPreference("Renren_Avatar", user.headurl); PreferenceHelper.SetPreference("Renren_NickName", user.name); PreferenceHelper.SetPreference("Renren_ID", user.uid.ToString()); } }