private void DemandeEnAttenteDeLiaison(List <int> lstCentre, DateTime dateDebut, DateTime dateFin, string Typedemande, string Produit) { Galatee.Silverlight.ServiceReport.ReportServiceClient service1 = new Galatee.Silverlight.ServiceReport.ReportServiceClient(Utility.Protocole(), Utility.EndPoint("Report")); service1.ReturneDevisPayeEnInstanceDeLiaisonCompleted += (sr, res) => { if (res != null && res.Cancelled) { return; } if (res.Result != null && res.Result.Count != 0) { Dictionary <string, string> param = new Dictionary <string, string>(); param.Add("pParametre", "LISTE DE DEMANDE EN ATTENTE DE LIAISON"); Utility.ActionDirectOrientation <ServicePrintings.CsDemandeBase, ServiceReport.CsDemandeBase>(res.Result, param, SessionObject.CheminImpression, "Demande", "Report", true); } else { Message.ShowInformation("Aucune information trouvée", "Report"); return; } }; service1.ReturneDevisPayeEnInstanceDeLiaisonAsync(lstCentre, dateDebut, dateFin, Typedemande, Produit); service1.CloseAsync(); }