From 436184701048e514a77fabb84a684ece7fdddbc8 Mon Sep 17 00:00:00 2001 From: Vincent ASTOLFI Date: Tue, 11 Oct 2022 13:40:04 +0200 Subject: [PATCH] correction des erreurs --- Code/Model/Banque.cs | 4 ++-- Code/Model/Devises.cs | 2 +- Code/Model/Manager.cs | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Code/Model/Banque.cs b/Code/Model/Banque.cs index 952653c..8db7d2a 100644 --- a/Code/Model/Banque.cs +++ b/Code/Model/Banque.cs @@ -20,12 +20,12 @@ namespace Model UrlLogo = urlLogo; } - private AjouterCompte(Compte compte) + private void AjouterCompte(Compte compte) { ListeDesComptes.Add(compte); } - private SupprimerCompte(Compte compte) + private void SupprimerCompte(Compte compte) { ListeDesComptes.Remove(compte); } diff --git a/Code/Model/Devises.cs b/Code/Model/Devises.cs index 537e910..aff53dd 100644 --- a/Code/Model/Devises.cs +++ b/Code/Model/Devises.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace Model { - internal enum Devises + public enum Devises { Livre_sterling, Rouble, diff --git a/Code/Model/Manager.cs b/Code/Model/Manager.cs index 5f35a8c..17eaff0 100644 --- a/Code/Model/Manager.cs +++ b/Code/Model/Manager.cs @@ -10,10 +10,10 @@ namespace Model { public class Manager : INotifyPropertyChanged { - public IReadOnlyCollection ListedesInscrits { get; private set }; - private List TouslesInscrits { get; set } = new List; + public IReadOnlyCollection ListedesInscrits { get; private set; } + private List TouslesInscrits { get; set; } = new List(); - public event PropertyChangedEventHandler PropertyChanged; + public event PropertyChangedEventHandler? PropertyChanged; void OnPropertyChanged(string propertyName) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));