Hi,
This is probably down to me being a klutz, but can anyone spot why
nothing is being returned? The Console.WriteLine is showing that
something is being added to the list. I'm guessing a scope problem...
(calling routine)
case 1:
List<string> race = new List<string>();
currentview.SetBackgroundDrawable(Resources.GetDrawable(Resource.Drawable.Back_BobMoore));
text.Text =
Resources.GetString(Resource.String.ComingSoon);
webservice_user getRace = new
webservice_user();
race =
getRace.getUpcomingRaces("fairmeadowsUpcoming");
races = race.ToArray();
break;
(webservice)
List<string> f = new List<string>();
if (checkForNetwork(true) != true)
{
f.Add("No network available");
return f;
}
else
{
List<Upcoming> tableData = new List<Upcoming>();
POHWS.webservice.Service1 Service3 = new
POHWS.webservice.Service1();
try
{
Service3.BeginGetUpcoming(track,
delegate(IAsyncResult iar)
{
tableData = Service3.EndGetUpcoming(iar).ToList();
Android.App.Application.SynchronizationContext.Post(delegate
{
if (tableData.Count == 0)
{
tableData[0].PostTime = "No data from
the webservice";
}
f.Add(tableData[0].PostTime);
Console.WriteLine("f[0] = {0}", f[0]);
}, null);
}, null);
}
catch (Exception oe)
{
f.Add(oe.ToString());
return f;
}
return f;
}
Not sure, it could also be the
Android.App.Application.SynchronizationContext.Post code.
Any help here would be appreciated. Thanks
Paul
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid