void RetourneReglementEncaisse(List <int> lesCentreCaisse) { try { CaisseServiceClient srv = new CaisseServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Caisse")); srv.RetourneEncaissementPourValidationAnnulationAsync(lesCentreCaisse); srv.RetourneEncaissementPourValidationAnnulationCompleted += (insers, resultins) => { try { if (resultins.Cancelled || resultins.Error != null) { string error = resultins.Error.Message; Message.ShowInformation(error, Langue.errorTitle); return; } _ListeDesReglementDuRecu = resultins.Result; if (_ListeDesReglementDuRecu != null && _ListeDesReglementDuRecu.Count != 0) { RemplireDataGrid(_ListeDesReglementDuRecu); } else { Message.ShowError(Langue.msg_pas_de_facture, Langue.informationTitle); } } catch (Exception ex) { Message.ShowError(ex.Message, Langue.informationTitle); } }; } catch (Exception es) { Message.ShowError(es.Message, Langue.informationTitle + "=> RetourneReglementEncaisse"); } }