void ReturneAllMonaie() { try { CaisseServiceClient service = new CaisseServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Caisse")); service.ReturneAllMonaieAsync(); service.ReturneAllMonaieCompleted += (s, args) => { if (args.Cancelled || args.Error != null) { Message.ShowError("Erreur de chargement des reçus de la caisse. Réessayez svp !", "Erreur"); this.DialogResult = true; } this.Lsv_Monaie.ItemsSource = null; this.Lsv_Monaie.ItemsSource = args.Result; }; service.CloseAsync(); } catch (Exception) { throw; } }