private void RetourneFraisPose(string Centre, string Client, string Ordre) { try { RecouvrementServiceClient client = new RecouvrementServiceClient(Utility.ProtocoleIndex(), Utility.EndPoint("Recouvrement")); client.AutorisationDePaiementCompleted += (ss, ress) => { try { if (ress.Cancelled || ress.Error != null) { Message.ShowError("Erreur survenue lors de l'appel service", "Informations"); return; } if (ress.Result != null && ress.Result.Count != 0) { lvwResultat.ItemsSource = null; lvwResultat.ItemsSource = ress.Result; } } catch (Exception ex) { Message.ShowError(ex, "Erreur"); } }; client.AutorisationDePaiementAsync(Centre, Client, Ordre); } catch (Exception ex) { throw ex; } }