Beispiel #1
0
 void client_GetResidentsCompleted(object sender, GetResidentsCompletedEventArgs e)
 {
     foreach (Resident resident in e.Result)
     {
         UserTable userTable = new UserTable()
         {
             Address   = resident.Address,
             City      = resident.City,
             Latitude  = resident.Latitude,
             Longitude = resident.Longitude,
             UserName  = resident.UserName,
             Id        = resident.UserId
         };
         db.Users.InsertOnSubmit(userTable);
     }
     db.SubmitChanges();
     client.GetItemsAsync(acquirerId);
     client.GetAciquirer_MessagesAsync(acquirerId);
 }