private void RetourneOrdre(ServiceAccueil.CsClient leClient) { try { string OrdreMax = string.Empty; Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient service = new Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Accueil")); service.RetourneOrdreMaxCompleted += (s, args) => { if (args != null && args.Cancelled) { return; } OrdreMax = args.Result; if (OrdreMax != null) { leClient.ORDRE = OrdreMax; ChargeDetailDEvis(leClient); } }; service.RetourneOrdreMaxAsync(leClient.FK_IDCENTRE.Value, leClient.CENTRE, leClient.REFCLIENT, leClient.PRODUIT); service.CloseAsync(); } catch (Exception ex) { throw ex; } }