From 067655862519b4c62de22d1b63ab128dbb79219c Mon Sep 17 00:00:00 2001 From: nimaye Date: Wed, 12 Oct 2022 17:21:00 +0200 Subject: [PATCH] modif inscrit et manager --- Code/Model/Inscrit.cs | 14 ++++++++------ Code/Model/Manager.cs | 2 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Code/Model/Inscrit.cs b/Code/Model/Inscrit.cs index 771f949..1afa833 100644 --- a/Code/Model/Inscrit.cs +++ b/Code/Model/Inscrit.cs @@ -35,16 +35,18 @@ namespace Model public string Mdp { get; private set; } public double SoldeTotal { get; private set; } public Devises Dev { get; private set; } - private List LesBanques { get; set; } + private List LesBanques { get; set; } = new List(); - /*public void ajouterBanque(Banque b) + public void ajouterBanque(Banque banque) { - TouteLesBanques.Add(b); + LesBanques.Add(banque); } - public void ajouterBanque(Banque b) + + public void SupprimerBanque(Banque banque) { - TouteLesBanques.Remove(b); - }*/ + LesBanques.Remove(banque); + } + public void ChoisirDevise(Devises devise) { Dev = devise; diff --git a/Code/Model/Manager.cs b/Code/Model/Manager.cs index 9d54457..99d03be 100644 --- a/Code/Model/Manager.cs +++ b/Code/Model/Manager.cs @@ -47,6 +47,8 @@ namespace Model persistance = persistance; }*/ + + } }