void _client_GetItemReceiveCompleted(object sender, GetItemReceiveCompletedEventArgs e) { List <ItemGR> list = new List <ItemGR> (); string msg = null; if (e.Error != null) { msg = e.Error.Message; } else if (e.Cancelled) { msg = CallingActivity.Resources.GetString(Resource.String.msg_reqcancel); } else { list = e.Result.ToList <ItemGR>(); RunOnUiThread(() => InsertItemGRIntoDb(list)); } if (msg != null) { RunOnUiThread(() => Downloadhandle.Invoke(CallingActivity, 0, msg)); } }
void _client_GetItemReceiveCompleted(object sender, GetItemReceiveCompletedEventArgs e) { List<ItemGR> list = new List<ItemGR> (); string msg = null; if ( e.Error != null) { msg = e.Error.Message; } else if ( e.Cancelled) { msg = CallingActivity.Resources.GetString(Resource.String.msg_reqcancel); } else { list = e.Result.ToList<ItemGR>(); RunOnUiThread (() => InsertItemGRIntoDb(list)); } if (msg != null) { RunOnUiThread (() => Downloadhandle.Invoke (CallingActivity, 0, msg)); } }