private void ValiderAffectation(List <CsTournee> lstTournee) { try { Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient service = new Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Recouvrement")); service.SaveAffectationTourneAsync(lstTournee); service.SaveAffectationTourneCompleted += (s, args) => { try { if (args != null && args.Cancelled) { Message.ShowError("Erreur survenue lors de l'appel du service.", "Erreur"); return; } if (args.Result == false) { } else { Message.ShowInformation("Mise a jour valider", "Affectaion"); } } catch (Exception ex) { Message.ShowError(ex, "Erreur"); } }; this.dataGrid1.IsEnabled = true; } catch (Exception ex) { Message.ShowError(ex, "Erreur"); } }