private void ChargerClientFromReference(int idCentre, string ReferenceClient, string Ordre) { try { Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient service = new Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Recouvrement")); service.RetourneClientByReferenceOrdreCompleted += (s, args) => { if ((args != null && args.Cancelled) || (args.Error != null)) { return; } if (args.Result != null) { this.Txt_NomClient.Text = args.Result.NOMABON; this.Txt_AdresseClient.Text = !string.IsNullOrEmpty(args.Result.ADRESSE)?args.Result.ADRESSE :string.Empty; this.Txt_ReferenceClient.Tag = args.Result; } }; service.RetourneClientByReferenceOrdreAsync(idCentre, ReferenceClient, Ordre); service.CloseAsync(); } catch (Exception) { Message.ShowError("Erreur au chargement des données", "Demande"); } }