Example #1
0
 void success(UserResponse response)
 {
     Dispatcher.BeginInvoke( () =>
     {
         loadingLayer.Visibility = Visibility.Collapsed;
         if (response != null)
             amigosListBox.ItemsSource = response.users;
     });
 }
Example #2
0
        void success(UserResponse response)
        {
            Dispatcher.BeginInvoke(() => {
                loadingLayer.Visibility = Visibility.Collapsed;
                if (response != null)
                {
                    for (int i = 0; i < response.users.Length; i++)
                    {
                        User user = response.users[i].user;
                        GeoCoordinate location = new GeoCoordinate(
                            Convert.ToDouble(user.addressLat),
                            Convert.ToDouble(user.addressLong));

                        mapa.Children.Add(
                            new Pushpin() {
                                Location = location,
                                Content = user.nome
                            });

                    }
                }
            });
        }
Example #3
0
 void successFriends(UserResponse response)
 {
     Dispatcher.BeginInvoke(() => {
         if (response!= null)
         {
             amigosListBox.ItemsSource = response.users;
             emprestae.userFriends = response.users;
         }
     });
 }
Example #4
0
 void success(UserResponse response)
 {
     Dispatcher.BeginInvoke(() => {
         waitingView.Visibility = Visibility.Collapsed;
         if (response.status != 0)
         {
             emprestae.userInfo = response.users[0].user;
             userPanel.DataContext = response.users[0];
             emprestae.GetUserObjs(emprestae.userInfo.idusuario, successObj, error);
             emprestae.GetFriends(successFriends, error);
         }
     });
 }