private void ReturneTourneeParPIA(string CodeSite) { Galatee.Silverlight.ServiceReport.ReportServiceClient service1 = new Galatee.Silverlight.ServiceReport.ReportServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Report")); service1.ReturneTourneePIACompleted += (sr, res) => { prgBar.Visibility = System.Windows.Visibility.Collapsed; if (res != null && res.Cancelled) { return; } if (res.Result != null && res.Result.Count != 0) { Utility.ActionExportation <ServicePrintings.CsTournee, ServiceReport.CsTournee>(res.Result.Where(p => !string.IsNullOrEmpty(p.NOMRELEVEUR)).ToList(), null, string.Empty, SessionObject.CheminImpression, "Recouv_ListeDestourneePIA", "Report", true, "xlsx"); } else { Message.ShowInformation("Aucune information trouvée", "Report"); return; } }; service1.ReturneTourneePIAAsync(CodeSite); service1.CloseAsync(); }