From 923b661b1b1e81cd8e1e2f004424406a7b4caca4 Mon Sep 17 00:00:00 2001 From: Liam MONCHANIN Date: Wed, 3 May 2023 11:54:47 +0200 Subject: [PATCH] Debut du program.cs, modif de certaines classes(debut ajout methodes) et maj de l'uml car on a pas push l'uml mardi 02/04 --- Uml_NotusApp.mdj | 355 +++++++++++++++++----- notus/Biblioteque_de_Class/Database.cs | 5 +- notus/Biblioteque_de_Class/Note.cs | 10 +- notus/Biblioteque_de_Class/Tags.cs | 3 +- notus/Biblioteque_de_Class/Utilisateur.cs | 5 +- notus/Notus_Console/Program.cs | 98 +++--- 6 files changed, 347 insertions(+), 129 deletions(-) diff --git a/Uml_NotusApp.mdj b/Uml_NotusApp.mdj index c0e5bdd..bc4195a 100644 --- a/Uml_NotusApp.mdj +++ b/Uml_NotusApp.mdj @@ -360,7 +360,7 @@ "font": "Arial;13;1", "left": 381, "top": 271, - "width": 164.0234375, + "width": 182.45068359375, "height": 13, "text": "Note" }, @@ -395,7 +395,7 @@ "font": "Arial;13;0", "left": 376, "top": 264, - "width": 174.0234375, + "width": 192.45068359375, "height": 25, "stereotypeLabel": { "$ref": "AAAAAAGHsxLjH2EXG+w=" @@ -432,7 +432,7 @@ "font": "Arial;13;0", "left": 381, "top": 294, - "width": 164.0234375, + "width": 182.45068359375, "height": 13, "text": "-nom: string", "horizontalAlignment": 0 @@ -449,7 +449,7 @@ "font": "Arial;13;0", "left": 381, "top": 309, - "width": 164.0234375, + "width": 182.45068359375, "height": 13, "text": "-logo: string", "horizontalAlignment": 0 @@ -466,7 +466,7 @@ "font": "Arial;13;0", "left": 381, "top": 324, - "width": 164.0234375, + "width": 182.45068359375, "height": 13, "text": "-dateCreation: string", "horizontalAlignment": 0 @@ -483,7 +483,7 @@ "font": "Arial;13;0", "left": 381, "top": 339, - "width": 164.0234375, + "width": 182.45068359375, "height": 13, "text": "-listeImage: list ", "horizontalAlignment": 0 @@ -500,7 +500,7 @@ "font": "Arial;13;0", "left": 381, "top": 354, - "width": 164.0234375, + "width": 182.45068359375, "height": 13, "text": "-listeLigneTexte: list ", "horizontalAlignment": 0 @@ -517,17 +517,68 @@ "font": "Arial;13;0", "left": 381, "top": 369, - "width": 164.0234375, + "width": 182.45068359375, "height": 13, "text": "-listePosiImage: list ", "horizontalAlignment": 0 + }, + { + "_type": "UMLAttributeView", + "_id": "AAAAAAGH4OGlOd4/fU4=", + "_parent": { + "$ref": "AAAAAAGHsxLjIGEbeoc=" + }, + "model": { + "$ref": "AAAAAAGH4OGlMd48So8=" + }, + "font": "Arial;13;0", + "left": 381, + "top": 384, + "width": 182.45068359375, + "height": 13, + "text": "-Proprietaire: Utilisateur", + "horizontalAlignment": 0 + }, + { + "_type": "UMLAttributeView", + "_id": "AAAAAAGH4OHotd9DLSY=", + "_parent": { + "$ref": "AAAAAAGHsxLjIGEbeoc=" + }, + "model": { + "$ref": "AAAAAAGH4OHosd9AbLE=" + }, + "font": "Arial;13;0", + "left": 381, + "top": 399, + "width": 182.45068359375, + "height": 13, + "text": "-Cooperateurs: list", + "horizontalAlignment": 0 + }, + { + "_type": "UMLAttributeView", + "_id": "AAAAAAGH4OJNhuCGmB0=", + "_parent": { + "$ref": "AAAAAAGHsxLjIGEbeoc=" + }, + "model": { + "$ref": "AAAAAAGH4OJNgeCD2aw=" + }, + "font": "Arial;13;0", + "left": 381, + "top": 414, + "width": 182.45068359375, + "height": 13, + "text": "-Editeurs: list", + "horizontalAlignment": 0 } ], "font": "Arial;13;0", "left": 376, "top": 289, - "width": 174.0234375, - "height": 98 + "width": 192.45068359375, + "height": 143 }, { "_type": "UMLOperationCompartmentView", @@ -550,8 +601,8 @@ }, "font": "Arial;13;0", "left": 381, - "top": 392, - "width": 164.0234375, + "top": 437, + "width": 182.45068359375, "height": 13, "text": "+SetTexte()", "horizontalAlignment": 0 @@ -567,8 +618,8 @@ }, "font": "Arial;13;0", "left": 381, - "top": 407, - "width": 164.0234375, + "top": 452, + "width": 182.45068359375, "height": 13, "text": "+SetNom()", "horizontalAlignment": 0 @@ -584,8 +635,8 @@ }, "font": "Arial;13;0", "left": 381, - "top": 422, - "width": 164.0234375, + "top": 467, + "width": 182.45068359375, "height": 13, "text": "+SetLogo()", "horizontalAlignment": 0 @@ -601,8 +652,8 @@ }, "font": "Arial;13;0", "left": 381, - "top": 437, - "width": 164.0234375, + "top": 482, + "width": 182.45068359375, "height": 13, "text": "+RechercherNote()", "horizontalAlignment": 0 @@ -618,8 +669,8 @@ }, "font": "Arial;13;0", "left": 381, - "top": 452, - "width": 164.0234375, + "top": 497, + "width": 182.45068359375, "height": 13, "text": "+AjouterTag()", "horizontalAlignment": 0 @@ -635,8 +686,8 @@ }, "font": "Arial;13;0", "left": 381, - "top": 467, - "width": 164.0234375, + "top": 512, + "width": 182.45068359375, "height": 13, "text": "+SupTag()", "horizontalAlignment": 0 @@ -652,8 +703,8 @@ }, "font": "Arial;13;0", "left": 381, - "top": 482, - "width": 164.0234375, + "top": 527, + "width": 182.45068359375, "height": 13, "text": "+AjouterImage()", "horizontalAlignment": 0 @@ -669,18 +720,69 @@ }, "font": "Arial;13;0", "left": 381, - "top": 497, - "width": 164.0234375, + "top": 542, + "width": 182.45068359375, "height": 13, "text": "+SupImage()", "horizontalAlignment": 0 + }, + { + "_type": "UMLOperationView", + "_id": "AAAAAAGH4NPpL9TC1Ns=", + "_parent": { + "$ref": "AAAAAAGHsxLjIGEcokU=" + }, + "model": { + "$ref": "AAAAAAGH4NPpHdS/8Gg=" + }, + "font": "Arial;13;0", + "left": 381, + "top": 557, + "width": 182.45068359375, + "height": 13, + "text": "+DeplacerImage()", + "horizontalAlignment": 0 + }, + { + "_type": "UMLOperationView", + "_id": "AAAAAAGH4OLpg+KbTHU=", + "_parent": { + "$ref": "AAAAAAGHsxLjIGEcokU=" + }, + "model": { + "$ref": "AAAAAAGH4OLpfuKYzBw=" + }, + "font": "Arial;13;0", + "left": 381, + "top": 572, + "width": 182.45068359375, + "height": 13, + "text": "+AjouterEditeur()", + "horizontalAlignment": 0 + }, + { + "_type": "UMLOperationView", + "_id": "AAAAAAGH4OLr++MKLxc=", + "_parent": { + "$ref": "AAAAAAGHsxLjIGEcokU=" + }, + "model": { + "$ref": "AAAAAAGH4OLr9uMH9As=" + }, + "font": "Arial;13;0", + "left": 381, + "top": 587, + "width": 182.45068359375, + "height": 13, + "text": "+PartagerNote()", + "horizontalAlignment": 0 } ], "font": "Arial;13;0", "left": 376, - "top": 387, - "width": 174.0234375, - "height": 128 + "top": 432, + "width": 192.45068359375, + "height": 173 }, { "_type": "UMLReceptionCompartmentView", @@ -719,8 +821,8 @@ "containerChangeable": true, "left": 376, "top": 264, - "width": 174.0234375, - "height": 251, + "width": 192.45068359375, + "height": 341, "nameCompartment": { "$ref": "AAAAAAGHsxLjH2EWA68=" }, @@ -1503,11 +1605,30 @@ "model": { "$ref": "AAAAAAGHs2HK4mc6StU=" }, + "subViews": [ + { + "_type": "UMLOperationView", + "_id": "AAAAAAGH4NXEQdn0UOE=", + "_parent": { + "$ref": "AAAAAAGHs2HK42dDsQM=" + }, + "model": { + "$ref": "AAAAAAGH4NXEO9nxv7o=" + }, + "font": "Arial;13;0", + "left": 669, + "top": 853, + "width": 160.4052734375, + "height": 13, + "text": "+SetCouleur()", + "horizontalAlignment": 0 + } + ], "font": "Arial;13;0", "left": 664, "top": 848, "width": 170.4052734375, - "height": 10 + "height": 23 }, { "_type": "UMLReceptionCompartmentView", @@ -2196,7 +2317,7 @@ "$ref": "AAAAAAGHsxLjH2EVAzI=" }, "lineStyle": 3, - "points": "550:405;792:448;887:523", + "points": "568:438;792:448;887:523", "showVisibility": true, "nameLabel": { "$ref": "AAAAAAGHwV2zBOCQoPw=" @@ -2229,7 +2350,7 @@ }, "visible": false, "font": "Arial;13;0", - "left": 668, + "left": 669, "top": 636, "height": 13, "alpha": 1.5707963267948966, @@ -2250,8 +2371,8 @@ }, "visible": null, "font": "Arial;13;0", - "left": 657, - "top": 646, + "left": 659, + "top": 647, "height": 13, "alpha": 1.5707963267948966, "distance": 30, @@ -2271,7 +2392,7 @@ }, "visible": false, "font": "Arial;13;0", - "left": 691, + "left": 690, "top": 615, "height": 13, "alpha": -1.5707963267948966, @@ -2354,8 +2475,8 @@ "$ref": "AAAAAAGHwV3a5OQzkxk=" }, "font": "Arial;13;0", - "left": 543, - "top": 527, + "left": 564, + "top": 565, "width": 58.169921875, "height": 13, "alpha": -0.2931152672219888, @@ -2376,8 +2497,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 547, - "top": 520, + "left": 569, + "top": 559, "height": 13, "alpha": -0.7853981633974483, "distance": 40, @@ -2395,8 +2516,8 @@ "$ref": "AAAAAAGHwV3a5OQzkxk=" }, "font": "Arial;13;0", - "left": 575, - "top": 495, + "left": 594, + "top": 532, "width": 6.5, "height": 13, "alpha": 0.3480805540781273, @@ -2447,7 +2568,7 @@ "$ref": "AAAAAAGHszJKAGG0NQ0=" }, "lineStyle": 3, - "points": "887:609;680:632;550:487", + "points": "887:609;680:632;568:526", "showVisibility": true, "nameLabel": { "$ref": "AAAAAAGHwV3a5OQ2Hy0=" @@ -2504,8 +2625,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 865, - "top": 362, + "left": 873, + "top": 383, "height": 13, "alpha": 1.5707963267948966, "distance": 15, @@ -2525,8 +2646,8 @@ }, "visible": null, "font": "Arial;13;0", - "left": 865, - "top": 347, + "left": 872, + "top": 368, "height": 13, "alpha": 1.5707963267948966, "distance": 30, @@ -2546,8 +2667,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 866, - "top": 391, + "left": 876, + "top": 412, "height": 13, "alpha": -1.5707963267948966, "distance": 15, @@ -2567,8 +2688,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 575, - "top": 366, + "left": 592, + "top": 404, "height": 13, "alpha": 0.5235987755982988, "distance": 30, @@ -2588,8 +2709,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 577, - "top": 353, + "left": 594, + "top": 390, "height": 13, "alpha": 0.7853981633974483, "distance": 40, @@ -2609,8 +2730,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 571, - "top": 394, + "left": 590, + "top": 431, "height": 13, "alpha": -0.5235987755982988, "distance": 25, @@ -2630,7 +2751,7 @@ }, "font": "Arial;13;0", "left": 1086, - "top": 359, + "top": 366, "width": 85.642578125, "height": 13, "alpha": -0.23361556914686998, @@ -2651,8 +2772,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 1154, - "top": 344, + "left": 1152, + "top": 348, "height": 13, "alpha": -0.7853981633974483, "distance": 40, @@ -2670,8 +2791,8 @@ "$ref": "AAAAAAGHwV8k+BY8GjY=" }, "font": "Arial;13;0", - "left": 1158, - "top": 384, + "left": 1159, + "top": 389, "width": 6.5, "height": 13, "alpha": 0.5235987755982988, @@ -2722,7 +2843,7 @@ "$ref": "AAAAAAGHsxLjH2EVAzI=" }, "lineStyle": 1, - "points": "550:388;1183:378", + "points": "568:427;1183:381", "showVisibility": true, "nameLabel": { "$ref": "AAAAAAGHwV8k+hY/yCc=" @@ -2780,7 +2901,7 @@ "visible": false, "font": "Arial;13;0", "left": 456, - "top": 596, + "top": 641, "height": 13, "alpha": 1.5707963267948966, "distance": 15, @@ -2801,7 +2922,7 @@ "visible": null, "font": "Arial;13;0", "left": 471, - "top": 597, + "top": 643, "height": 13, "alpha": 1.5707963267948966, "distance": 30, @@ -2822,7 +2943,7 @@ "visible": false, "font": "Arial;13;0", "left": 427, - "top": 593, + "top": 638, "height": 13, "alpha": -1.5707963267948966, "distance": 15, @@ -2840,7 +2961,7 @@ "$ref": "AAAAAAGHsxLjH2EVAzI=" }, "lineStyle": 1, - "points": "450:515;434:687", + "points": "448:605;437:687", "showVisibility": true, "nameLabel": { "$ref": "AAAAAAGHwWj+HLR8LT4=" @@ -3148,8 +3269,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 712, - "top": 499, + "left": 722, + "top": 524, "height": 13, "alpha": 1.5707963267948966, "distance": 15, @@ -3169,8 +3290,8 @@ }, "visible": null, "font": "Arial;13;0", - "left": 706, - "top": 513, + "left": 717, + "top": 538, "height": 13, "alpha": 1.5707963267948966, "distance": 30, @@ -3190,8 +3311,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 723, - "top": 472, + "left": 731, + "top": 495, "height": 13, "alpha": -1.5707963267948966, "distance": 15, @@ -3212,7 +3333,7 @@ "visible": false, "font": "Arial;13;0", "left": 857, - "top": 558, + "top": 568, "height": 13, "alpha": 0.5235987755982988, "distance": 30, @@ -3232,8 +3353,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 850, - "top": 569, + "left": 851, + "top": 580, "height": 13, "alpha": 0.7853981633974483, "distance": 40, @@ -3253,8 +3374,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 871, - "top": 534, + "left": 870, + "top": 543, "height": 13, "alpha": -0.5235987755982988, "distance": 25, @@ -3273,8 +3394,8 @@ "$ref": "AAAAAAGHwW45PFitVg4=" }, "font": "Arial;13;0", - "left": 543, - "top": 452, + "left": 563, + "top": 491, "width": 68.9990234375, "height": 13, "alpha": -0.5199840652869545, @@ -3295,8 +3416,8 @@ }, "visible": false, "font": "Arial;13;0", - "left": 565, - "top": 454, + "left": 586, + "top": 494, "height": 13, "alpha": -0.7853981633974483, "distance": 40, @@ -3314,8 +3435,8 @@ "$ref": "AAAAAAGHwW45PFitVg4=" }, "font": "Arial;13;0", - "left": 559, - "top": 437, + "left": 578, + "top": 477, "width": 6.5, "height": 13, "alpha": -0.6366393122007756, @@ -3364,7 +3485,7 @@ "$ref": "AAAAAAGHszJKAGG0NQ0=" }, "lineStyle": 1, - "points": "887:560;550:424", + "points": "887:568;568:465", "showVisibility": true, "nameLabel": { "$ref": "AAAAAAGHwW45PViwqGs=" @@ -3983,6 +4104,38 @@ "name": "listePosiImage", "visibility": "private", "type": "list " + }, + { + "_type": "UMLAttribute", + "_id": "AAAAAAGH4OGlMd48So8=", + "_parent": { + "$ref": "AAAAAAGHsxLjHmETJHw=" + }, + "name": "Proprietaire", + "visibility": "private", + "type": { + "$ref": "AAAAAAGHszJKAGGyqQg=" + } + }, + { + "_type": "UMLAttribute", + "_id": "AAAAAAGH4OHosd9AbLE=", + "_parent": { + "$ref": "AAAAAAGHsxLjHmETJHw=" + }, + "name": "Cooperateurs", + "visibility": "private", + "type": "list" + }, + { + "_type": "UMLAttribute", + "_id": "AAAAAAGH4OJNgeCD2aw=", + "_parent": { + "$ref": "AAAAAAGHsxLjHmETJHw=" + }, + "name": "Editeurs", + "visibility": "private", + "type": "list" } ], "operations": [ @@ -4049,6 +4202,30 @@ "$ref": "AAAAAAGHsxLjHmETJHw=" }, "name": "SupImage" + }, + { + "_type": "UMLOperation", + "_id": "AAAAAAGH4NPpHdS/8Gg=", + "_parent": { + "$ref": "AAAAAAGHsxLjHmETJHw=" + }, + "name": "DeplacerImage" + }, + { + "_type": "UMLOperation", + "_id": "AAAAAAGH4OLpfuKYzBw=", + "_parent": { + "$ref": "AAAAAAGHsxLjHmETJHw=" + }, + "name": "AjouterEditeur" + }, + { + "_type": "UMLOperation", + "_id": "AAAAAAGH4OLr9uMH9As=", + "_parent": { + "$ref": "AAAAAAGHsxLjHmETJHw=" + }, + "name": "PartagerNote" } ] }, @@ -4664,6 +4841,16 @@ "visibility": "private", "type": "list " } + ], + "operations": [ + { + "_type": "UMLOperation", + "_id": "AAAAAAGH4NXEO9nxv7o=", + "_parent": { + "$ref": "AAAAAAGHs2HK4mc6StU=" + }, + "name": "SetCouleur" + } ] }, { diff --git a/notus/Biblioteque_de_Class/Database.cs b/notus/Biblioteque_de_Class/Database.cs index 3b58a96..5234f6b 100644 --- a/notus/Biblioteque_de_Class/Database.cs +++ b/notus/Biblioteque_de_Class/Database.cs @@ -6,9 +6,8 @@ using System.Threading.Tasks; namespace Biblioteque_de_Class { - internal class Database + public class Database { - List listDefaultLogo; - + private List listDefaultLogo; } } diff --git a/notus/Biblioteque_de_Class/Note.cs b/notus/Biblioteque_de_Class/Note.cs index 640840b..8585425 100644 --- a/notus/Biblioteque_de_Class/Note.cs +++ b/notus/Biblioteque_de_Class/Note.cs @@ -21,12 +21,16 @@ namespace Biblioteque_de_Class public List listeImage; public List listeLigneTexte; public List listePosiImage; + public List cooperateurs; + public List editeurs; + public Utilisateur proprietaire; - public Note(string nom, string logoPATH, string dateCreation) + public Note(string nom, string logoPATH, Utilisateur _proprietaire) { Nom = nom; LogoPATH = logoPATH; DateCreation = DateOnly.FromDateTime(DateTime.Now); + proprietaire = _proprietaire; } public Note RechercherNote(List listeNote, string nom) @@ -45,8 +49,8 @@ namespace Biblioteque_de_Class public Note AjouterTag() { - Tags tags= new List(); - + List tags= new List(); + return null; } } } diff --git a/notus/Biblioteque_de_Class/Tags.cs b/notus/Biblioteque_de_Class/Tags.cs index af4924f..473da35 100644 --- a/notus/Biblioteque_de_Class/Tags.cs +++ b/notus/Biblioteque_de_Class/Tags.cs @@ -25,7 +25,7 @@ namespace Biblioteque_de_Class Couleur = couleur; } - public Tags? RechercherTags(List listtags,string rechercher) + public Tags RechercherTags(List listtags,string rechercher) { foreach (Tags tag in listtags) { @@ -36,5 +36,6 @@ namespace Biblioteque_de_Class } return null; } + } } diff --git a/notus/Biblioteque_de_Class/Utilisateur.cs b/notus/Biblioteque_de_Class/Utilisateur.cs index 2887069..f1efcdb 100644 --- a/notus/Biblioteque_de_Class/Utilisateur.cs +++ b/notus/Biblioteque_de_Class/Utilisateur.cs @@ -1,4 +1,5 @@ using System.ComponentModel; +using System.ComponentModel.DataAnnotations.Schema; namespace Biblioteque_de_Class { @@ -24,7 +25,9 @@ namespace Biblioteque_de_Class public void AjouterNote(Utilisateur NoteList) { - + string logoPATH = Console.ReadLine(); + string nom = Console.ReadLine(); + Note note = new Note(nom,logoPATH,this); } diff --git a/notus/Notus_Console/Program.cs b/notus/Notus_Console/Program.cs index 41145ce..69ad44a 100644 --- a/notus/Notus_Console/Program.cs +++ b/notus/Notus_Console/Program.cs @@ -1,4 +1,6 @@ using Biblioteque_de_Class; +using System.ComponentModel.DataAnnotations.Schema; +using System.Diagnostics; int boucle = 0; while (boucle == 0){ @@ -16,63 +18,70 @@ while (boucle == 0){ Console.WriteLine("| 5/créer note |"); Console.WriteLine("| 6/supprimer note |"); Console.WriteLine("| 7/créer tag |"); - Console.WriteLine("| 8/supprimer tag |"); - Console.WriteLine("| 9/ajouter image |"); - Console.WriteLine("| 10/supprimer image |"); - Console.WriteLine("| 11/déplacer image |"); - Console.WriteLine("| 12/ajouter qql à la note |"); - Console.WriteLine("| 13/supprimer qql à la note |"); - Console.WriteLine("| 14/créer un thème |"); - Console.WriteLine("| 15/supprimer un thème |"); - Console.WriteLine("| 16/modifier un thème |"); - Console.WriteLine("| 17/rechercher une note |"); - Console.WriteLine("| 18/rechercher une note avec tags |"); - Console.WriteLine("| 19/rechercher une note avec date |"); - Console.WriteLine("| 20/modifier tags |"); - Console.WriteLine("| 21/modifier compte |"); - Console.WriteLine("| 22/modifier note |"); - Console.WriteLine("| 23/partage note |"); - Console.WriteLine("| 24/modifier role (si proprietaire) |"); - Console.WriteLine("| 25/supprimer cooperateur |"); + Console.WriteLine("| 8/ajouter tag |"); + Console.WriteLine("| 9/supprimer tag |"); + Console.WriteLine("| 10/ajouter image |"); + Console.WriteLine("| 11/supprimer image |"); + Console.WriteLine("| 12/déplacer image |"); + Console.WriteLine("| 13/ajouter qql à la note |"); + Console.WriteLine("| 14/supprimer qql à la note |"); + Console.WriteLine("| 15/créer un thème |"); + Console.WriteLine("| 16/supprimer un thème |"); + Console.WriteLine("| 17/modifier un thème |"); + Console.WriteLine("| 18/rechercher une note |"); + Console.WriteLine("| 19/rechercher une note avec tags |"); + Console.WriteLine("| 20/rechercher une note avec date |"); + Console.WriteLine("| 21/modifier tags |"); + Console.WriteLine("| 22/modifier compte |"); + Console.WriteLine("| 23/modifier note |"); + Console.WriteLine("| 24/partage note |"); + Console.WriteLine("| 25/modifier role (si proprietaire) |"); + Console.WriteLine("| 26/supprimer cooperateur |"); Console.WriteLine("| |"); Console.WriteLine("|-----------------------------------------------|"); switch (Console.ReadLine()) { case "1": - + Database.RechercherPseudo(); + Database.TrouverMail(); + Database.CorrespondPassword(); break; case "2": break; case "3": - + Utilisateur.Utilisateur(Upseudo, Umail, Upassword); + Database.AjouterBaseData(); break; case "4": - + Database.RecherhcerPseudo(); + Database.TrouverMail(); + Database.CorrespondPassword(); + Database.SuppBaseData(); break; case "5": - + Utilisateur.AjouterNote(NoteList); break; case "6": - + Utilisateur.SupNote(); break; case "7": - + Tags.Tags(nom,couleur); break; case "8": - + Note.AjouterTag(); break; case "9": - + Note.SuppTag(); break; case "10": - + Note.ajouterImage(); break; case "11": - + Note.SuppImage(); break; case "12": - + Note.DeplacerImage(); break; case "13": @@ -81,16 +90,16 @@ while (boucle == 0){ break; case "15": - + Theme.Theme(nom,listCouleur); break; case "16": break; case "17": - + Theme.SetTheme(); break; case "18": - + Note.RechercherNote(listeNote, nom); break; case "19": @@ -99,19 +108,34 @@ while (boucle == 0){ break; case "21": - + Tags.SetNom(); + Tags.SetCouleur(); break; case "22": - + Utilisateur.SetPsd(); + Utilisateur.SetMail(); + Utilisateur.SetMdp(); break; case "23": - + Note.SetNom(); + Note.SetLogo(); break; case "24": - + Note.GererPartageNote(); break; case "25": - + Note.VerifProprietaire(); + if () + { + Note.ModifRole(); + } + break; + case "26": + Note.VerifProprietaire(); + if () + { + Note.ModifRole(); + } break; default: Console.WriteLine("< Veuillez rentrer une des options proposées à l'ecran ! >");