private void ChargerListeTourneePIA(string CodeSite) { ListeTournee = new List <CsTournee>(); Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient service = new Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Recouvrement")); service.RetourneTourneeParPIAAsync(CodeSite); service.RetourneTourneeParPIACompleted += (s, args) => { try { if (args.Cancelled || args.Error != null) { Message.ShowError("Erreur survenue à l'appel du service.", "Erreur"); return; } if (args.Result == null || args.Result.Count == 0) { Message.ShowError("Aucune tournée retournée par le système.", "Info"); return; } ListeTournee = args.Result; } catch (Exception ex) { Message.ShowError(ex, "Erreur"); } }; }