private void RechercheDetailCampagne() { try { RecouvrementServiceClient client = new RecouvrementServiceClient(Utility.ProtocoleIndex(), Utility.EndPoint("Recouvrement")); client.RechercherSuiviCampagnePrecontentieuxCompleted += (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) { List <CsDetailCampagnePrecontentieux> lstDetail = RetourneDistinctReglement(ress.Result); this.lvwResultat.ItemsSource = null; this.lvwResultat.ItemsSource = lstDetail; } } catch (Exception ex) { Message.ShowError(ex, "Erreur"); } }; client.RechercherSuiviCampagnePrecontentieuxAsync(CampagneSelect); } catch (Exception ex) { throw ex; } }