private void Model_EnumrateCitiesFailed(object sender, Toolkit.Events.ActionResultEventArgs e) { RunOnUiThread(() => { _connectionProgressDialogDecorator.Hide(); using (Toast errorToast = Toast.MakeText(Application.BaseContext, Resources.GetString(Resource.String.ConnectToServerFailed), ToastLength.Short)) errorToast.Show(); }); }
private void CityModel_AuthenticationFailed(object sender, Toolkit.Events.ActionResultEventArgs e) { RunOnUiThread(() => { _authorizationProgressDialogDecorator.Hide(); string message = Resources.GetString(Resource.String.AuthenticationFailed); HardwareServiceException hardwareServiceException = e.Result.FailException as HardwareServiceException; if (hardwareServiceException != null) { switch (hardwareServiceException.ErrorType) { case TaxiOnline.ClientInfrastructure.Exceptions.Enums.HardwareServiceErrors.NoLocationService: message = Resources.GetString(Resource.String.NoLocationServiceAvailable); break; default: break; } } using (Toast errorToast = Toast.MakeText(Application.BaseContext, message, ToastLength.Short)) errorToast.Show(); }); }
private void CityModel_PersonsRequestFailed(object sender, Toolkit.Events.ActionResultEventArgs e) { using (Toast errorToast = Toast.MakeText(Application.BaseContext, Resources.GetString(Resource.String.FailedToLoadPersons), ToastLength.Short)) errorToast.Show(); }