From a69e6783402e42f5faeff3c0fbea8dd73f9b8460 Mon Sep 17 00:00:00 2001 From: "matheo.thierry" Date: Fri, 5 May 2023 22:11:34 +0200 Subject: [PATCH] add search fonction to favoris and search fonction moved from note to user --- notus/Biblioteque_de_Class/Note.cs | 2 +- notus/Biblioteque_de_Class/Utilisateur.cs | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/notus/Biblioteque_de_Class/Note.cs b/notus/Biblioteque_de_Class/Note.cs index 8b2a2dc..453e664 100644 --- a/notus/Biblioteque_de_Class/Note.cs +++ b/notus/Biblioteque_de_Class/Note.cs @@ -47,7 +47,7 @@ namespace Biblioteque_de_Class throw new Exception("no tag find with this name"); } - public void SupTag(string name){ + public void EnleverTag(string name){ foreach(Tags tag in atributionTag){ if(tag.Nom == name) { atributionTag.Remove(tag); } } diff --git a/notus/Biblioteque_de_Class/Utilisateur.cs b/notus/Biblioteque_de_Class/Utilisateur.cs index 9072b4b..eca7d23 100644 --- a/notus/Biblioteque_de_Class/Utilisateur.cs +++ b/notus/Biblioteque_de_Class/Utilisateur.cs @@ -90,7 +90,7 @@ namespace Biblioteque_de_Class NoteList.Remove(note); } - /*public void AjouterTag(List listNote, string name) { + public void createTag(List listNote, string name) { foreach(Tags tag in listNote) { if(tag.Nom == name) @@ -101,7 +101,7 @@ namespace Biblioteque_de_Class throw new Exception("no tag find with this name"); } - public void SupTag(string name) + public void deleteTag(string name) { foreach(Tags tag in atributionTag) { @@ -111,8 +111,6 @@ namespace Biblioteque_de_Class } } throw new Exception("no tag find with this name"); - }*/ - - /// Je laisse en attendant, sur l'uml c'est dans utilisateur mais y a les methodes dans note + } } } \ No newline at end of file