private void RetourneHistoriqueConnectionClient(List <int?> idClient) { string key = Utility.getKey(); Dictionary <string, string> param = new Dictionary <string, string>(); param.Add("pNomConnection", leUtilisateur.LIBELLE); AdministrationServiceClient client = new AdministrationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Administration")); client.RetourneHistoriqueConnectionfromListUserCompleted += (ss, res) => { if (res.Cancelled || res.Error != null) { string error = res.Error.Message; Message.ShowError(error, Galatee.Silverlight.Resources.Langue.errorTitle); return; } if (res.Result == null) { Message.ShowInformation(Galatee.Silverlight.Resources.Langue.msgNodata, Galatee.Silverlight.Resources.Langue.informationTitle); return; } //Utility.ActionDirectOrientation<ServicePrintings.CsHistoriquePassword, ServiceAdministration.CsHistoriquePassword>(res.Result, null, SessionObject.CheminImpression, "ReportConnectionUser", "Administration", true); if (Option == SessionObject.EnvoiPrinter) { Utility.ActionDirectOrientation <ServicePrintings.CsHistoriquePassword, ServiceAdministration.CsHistoriquePassword>(res.Result, null, SessionObject.CheminImpression, "ReportConnectionUser", "Administration", true); } else if (Option == SessionObject.EnvoiExecl) { Utility.ActionExportation <ServicePrintings.CsHistoriquePassword, ServiceAdministration.CsHistoriquePassword>(res.Result, null, string.Empty, SessionObject.CheminImpression, "ReportConnectionUser", "Administration", true, "xlsx"); } else if (Option == SessionObject.EnvoiWord) { Utility.ActionExportation <ServicePrintings.CsHistoriquePassword, ServiceAdministration.CsHistoriquePassword>(res.Result, null, string.Empty, SessionObject.CheminImpression, "ReportConnectionUser", "Administration", true, "doc"); } else if (Option == SessionObject.EnvoiPdf) { Utility.ActionExportation <ServicePrintings.CsHistoriquePassword, ServiceAdministration.CsHistoriquePassword>(res.Result, null, string.Empty, SessionObject.CheminImpression, "ReportConnectionUser", "Administration", true, "pdf"); } }; client.RetourneHistoriqueConnectionfromListUserAsync(idClient); }