From ec757cad9fb754ccda09523d64ddeea5aabff3a3 Mon Sep 17 00:00:00 2001 From: nimaye Date: Wed, 18 Jan 2023 15:26:27 +0100 Subject: [PATCH] binding partie operation --- Sources/Data/ClientAPI.cs | 2 +- Sources/Data/PersAPI.cs | 2 +- Sources/IHM/Desktop/Operations.xaml | 4 ++-- Sources/IHM/Desktop/Operations.xaml.cs | 32 +++++++++++++------------- Sources/Modele/Operation.cs | 18 +++++++-------- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Sources/Data/ClientAPI.cs b/Sources/Data/ClientAPI.cs index cbfc306..719927f 100644 --- a/Sources/Data/ClientAPI.cs +++ b/Sources/Data/ClientAPI.cs @@ -290,7 +290,7 @@ namespace Data var dataBody = new Dictionary { { "compte", compte.Identifiant }, - { "nom", operation.IntituleOperation }, + { "nom", operation.Nom }, { "montant", operation.Montant.ToString() }, { "dateO", operation.DateOperation.ToString() }, { "methodePayement", operation.ModePayement.ToString() }, diff --git a/Sources/Data/PersAPI.cs b/Sources/Data/PersAPI.cs index 72af6ad..fc5d396 100644 --- a/Sources/Data/PersAPI.cs +++ b/Sources/Data/PersAPI.cs @@ -88,7 +88,7 @@ namespace Data } public async Task SupprimerOperation(Compte compte, Operation operation) { - return await ClientAPI.DeleteOperationInscritAsync(compte.Identifiant, operation.IntituleOperation); + return await ClientAPI.DeleteOperationInscritAsync(compte.Identifiant, operation.Nom); } public async Task> RecupererOperation(Compte compte) { diff --git a/Sources/IHM/Desktop/Operations.xaml b/Sources/IHM/Desktop/Operations.xaml index f1ee33f..8c804ea 100644 --- a/Sources/IHM/Desktop/Operations.xaml +++ b/Sources/IHM/Desktop/Operations.xaml @@ -84,7 +84,7 @@ - + @@ -101,7 +101,7 @@ -