|
|
|
@ -40,18 +40,13 @@ namespace Biblioteque_de_Class
|
|
|
|
|
|
|
|
|
|
public override string ToString() => $"note -> nom : {Nom}\nlogoPATH : {LogoPATH}\nhow many line : {listeLigneTexte.Count()}";
|
|
|
|
|
|
|
|
|
|
///public Note RechercherNote(List<Note> listeNote, string nom)
|
|
|
|
|
/// {
|
|
|
|
|
/// List<Note> newListNote = new List<Note>();
|
|
|
|
|
/// foreach (Note note in listeNote)
|
|
|
|
|
/// {
|
|
|
|
|
/// if (note.Nom == nom)
|
|
|
|
|
/// {
|
|
|
|
|
///
|
|
|
|
|
/// }
|
|
|
|
|
/// }
|
|
|
|
|
/// return newListNote;
|
|
|
|
|
/// }
|
|
|
|
|
public List<Note> RechercherNote(List<Note> listeNote, string nom){
|
|
|
|
|
List<Note> ListNotesearch = new List<Note>();
|
|
|
|
|
string search = nom.Tolower();
|
|
|
|
|
foreach(Note note in listeNote){
|
|
|
|
|
if(note.Nom.Tolower().Contains(search)) { ListNotesearch.Add(note.Nom); }
|
|
|
|
|
}return ListNotesearch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void AjouterTag(List<Tags> listNote, string name) {
|
|
|
|
|
foreach(Tags tag in listNote){
|
|
|
|
|