private void TauxEncaissement(List <int> IdCentre) { Galatee.Silverlight.ServiceReport.ReportServiceClient service1 = new Galatee.Silverlight.ServiceReport.ReportServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Report")); service1.RetourneTauxDeEncaissementCompleted += (sr, res) => { prgBar.Visibility = System.Windows.Visibility.Collapsed; if (res != null && res.Cancelled) { return; } if (res.Result != null && res.Result.Count != 0) { Utility.ActionDirectOrientation <ServicePrintings.CsLclient, ServiceReport.CsLclient>(res.Result, null, SessionObject.CheminImpression, "TauxEncaissement", "Report", true); } else { Message.ShowInformation("Aucune information trouvée", "Report"); return; } }; service1.RetourneTauxDeEncaissementAsync(IdCentre); service1.CloseAsync(); }