void GetMonkeyMatchCompleted(object sender, GetMonkeyMatchCompletedEventArgs e) { if (e.Error != null) { var alert = new UIAlertView { Title = "Error", Message = e.Error.Message }; alert.Show(); return; } if (e.Cancelled) { var alert = new UIAlertView { Title = "Error", Message = "Request was canceled" }; alert.Show(); return; } monkeyInformationSource.RefreshData(results, e.Result); }
void GetMonkeyMatchCompleted(object sender, GetMonkeyMatchCompletedEventArgs e) { if (e.Error != null) { Toast.MakeText(this, e.Error.Message, ToastLength.Short).Show(); return; } if (e.Cancelled) { Toast.MakeText(this, "Request was canceled", ToastLength.Short).Show(); return; } adapter.RefreshData(e.Result); }
void GetMonkeyMatchCompleted(object sender, GetMonkeyMatchCompletedEventArgs e) { if (e.Error != null) { var alert = new UIAlertView {Title = "Error", Message = e.Error.Message}; alert.Show(); return; } if (e.Cancelled) { var alert = new UIAlertView { Title = "Error", Message = "Request was canceled" }; alert.Show(); return; } monkeyInformationSource.RefreshData(results, e.Result); }