MODIF and ADD évolution possible uml et debut de dev pour le code voir si nouvelle branche pour fonctionnalité

vSonar_test
Matheo THIERRY 2 years ago
parent 1f5a0c2512
commit 89a6555b50

@ -1369,182 +1369,6 @@
"$ref": "AAAAAAGHszUGkmJeE1Y=" "$ref": "AAAAAAGHszUGkmJeE1Y="
} }
}, },
{
"_type": "UMLClassView",
"_id": "AAAAAAGHs1tJIWWFFvw=",
"_parent": {
"$ref": "AAAAAAFF+qBtyKM79qY="
},
"model": {
"$ref": "AAAAAAGHs1tJIWWDEBQ="
},
"subViews": [
{
"_type": "UMLNameCompartmentView",
"_id": "AAAAAAGHs1tJIWWGGNU=",
"_parent": {
"$ref": "AAAAAAGHs1tJIWWFFvw="
},
"model": {
"$ref": "AAAAAAGHs1tJIWWDEBQ="
},
"subViews": [
{
"_type": "LabelView",
"_id": "AAAAAAGHs1tJIWWHR+I=",
"_parent": {
"$ref": "AAAAAAGHs1tJIWWGGNU="
},
"visible": false,
"font": "Arial;13;0",
"left": 784,
"top": 192,
"height": 13
},
{
"_type": "LabelView",
"_id": "AAAAAAGHs1tJIWWIG8o=",
"_parent": {
"$ref": "AAAAAAGHs1tJIWWGGNU="
},
"font": "Arial;13;1",
"left": 901,
"top": 791,
"width": 153.537109375,
"height": 13,
"text": "SetTheme"
},
{
"_type": "LabelView",
"_id": "AAAAAAGHs1tJIWWJptc=",
"_parent": {
"$ref": "AAAAAAGHs1tJIWWGGNU="
},
"visible": false,
"font": "Arial;13;0",
"left": 784,
"top": 192,
"width": 73.67724609375,
"height": 13,
"text": "(from Model)"
},
{
"_type": "LabelView",
"_id": "AAAAAAGHs1tJIWWKk58=",
"_parent": {
"$ref": "AAAAAAGHs1tJIWWGGNU="
},
"visible": false,
"font": "Arial;13;0",
"left": 784,
"top": 192,
"height": 13,
"horizontalAlignment": 1
}
],
"font": "Arial;13;0",
"left": 896,
"top": 784,
"width": 163.537109375,
"height": 25,
"stereotypeLabel": {
"$ref": "AAAAAAGHs1tJIWWHR+I="
},
"nameLabel": {
"$ref": "AAAAAAGHs1tJIWWIG8o="
},
"namespaceLabel": {
"$ref": "AAAAAAGHs1tJIWWJptc="
},
"propertyLabel": {
"$ref": "AAAAAAGHs1tJIWWKk58="
}
},
{
"_type": "UMLAttributeCompartmentView",
"_id": "AAAAAAGHs1tJIWWLFZc=",
"_parent": {
"$ref": "AAAAAAGHs1tJIWWFFvw="
},
"model": {
"$ref": "AAAAAAGHs1tJIWWDEBQ="
},
"font": "Arial;13;0",
"left": 896,
"top": 809,
"width": 163.537109375,
"height": 10
},
{
"_type": "UMLOperationCompartmentView",
"_id": "AAAAAAGHs1tJIWWMSO8=",
"_parent": {
"$ref": "AAAAAAGHs1tJIWWFFvw="
},
"model": {
"$ref": "AAAAAAGHs1tJIWWDEBQ="
},
"font": "Arial;13;0",
"left": 896,
"top": 819,
"width": 163.537109375,
"height": 10
},
{
"_type": "UMLReceptionCompartmentView",
"_id": "AAAAAAGHs1tJIWWN4/0=",
"_parent": {
"$ref": "AAAAAAGHs1tJIWWFFvw="
},
"model": {
"$ref": "AAAAAAGHs1tJIWWDEBQ="
},
"visible": false,
"font": "Arial;13;0",
"left": 392,
"top": 96,
"width": 10,
"height": 10
},
{
"_type": "UMLTemplateParameterCompartmentView",
"_id": "AAAAAAGHs1tJIWWOOTo=",
"_parent": {
"$ref": "AAAAAAGHs1tJIWWFFvw="
},
"model": {
"$ref": "AAAAAAGHs1tJIWWDEBQ="
},
"visible": false,
"font": "Arial;13;0",
"left": 392,
"top": 96,
"width": 10,
"height": 10
}
],
"font": "Arial;13;0",
"containerChangeable": true,
"left": 896,
"top": 784,
"width": 163.537109375,
"height": 105,
"nameCompartment": {
"$ref": "AAAAAAGHs1tJIWWGGNU="
},
"attributeCompartment": {
"$ref": "AAAAAAGHs1tJIWWLFZc="
},
"operationCompartment": {
"$ref": "AAAAAAGHs1tJIWWMSO8="
},
"receptionCompartment": {
"$ref": "AAAAAAGHs1tJIWWN4/0="
},
"templateParameterCompartment": {
"$ref": "AAAAAAGHs1tJIWWOOTo="
}
},
{ {
"_type": "UMLClassView", "_type": "UMLClassView",
"_id": "AAAAAAGHs2HK42c8byg=", "_id": "AAAAAAGHs2HK42c8byg=",
@ -1573,8 +1397,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1440, "left": 272,
"top": 400, "top": 432,
"height": 13 "height": 13
}, },
{ {
@ -1584,8 +1408,8 @@
"$ref": "AAAAAAGHs2HK42c9P1Y=" "$ref": "AAAAAAGHs2HK42c9P1Y="
}, },
"font": "Arial;13;1", "font": "Arial;13;1",
"left": 1253, "left": 669,
"top": 791, "top": 807,
"width": 160.4052734375, "width": 160.4052734375,
"height": 13, "height": 13,
"text": "Theme" "text": "Theme"
@ -1598,8 +1422,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1440, "left": 272,
"top": 400, "top": 432,
"width": 73.67724609375, "width": 73.67724609375,
"height": 13, "height": 13,
"text": "(from Model)" "text": "(from Model)"
@ -1612,15 +1436,15 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1440, "left": 272,
"top": 400, "top": 432,
"height": 13, "height": 13,
"horizontalAlignment": 1 "horizontalAlignment": 1
} }
], ],
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1248, "left": 664,
"top": 784, "top": 800,
"width": 170.4052734375, "width": 170.4052734375,
"height": 25, "height": 25,
"stereotypeLabel": { "stereotypeLabel": {
@ -1656,8 +1480,8 @@
"$ref": "AAAAAAGHs2HpZ2dkozw=" "$ref": "AAAAAAGHs2HpZ2dkozw="
}, },
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1253, "left": 669,
"top": 814, "top": 830,
"width": 160.4052734375, "width": 160.4052734375,
"height": 13, "height": 13,
"text": "-listeCouleur: list <string>", "text": "-listeCouleur: list <string>",
@ -1665,8 +1489,8 @@
} }
], ],
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1248, "left": 664,
"top": 809, "top": 825,
"width": 170.4052734375, "width": 170.4052734375,
"height": 23 "height": 23
}, },
@ -1680,8 +1504,8 @@
"$ref": "AAAAAAGHs2HK4mc6StU=" "$ref": "AAAAAAGHs2HK4mc6StU="
}, },
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1248, "left": 664,
"top": 832, "top": 848,
"width": 170.4052734375, "width": 170.4052734375,
"height": 10 "height": 10
}, },
@ -1696,8 +1520,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 720, "left": 136,
"top": 200, "top": 216,
"width": 10, "width": 10,
"height": 10 "height": 10
}, },
@ -1712,16 +1536,16 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 720, "left": 136,
"top": 200, "top": 216,
"width": 10, "width": 10,
"height": 10 "height": 10
} }
], ],
"font": "Arial;13;0", "font": "Arial;13;0",
"containerChangeable": true, "containerChangeable": true,
"left": 1248, "left": 664,
"top": 784, "top": 800,
"width": 170.4052734375, "width": 170.4052734375,
"height": 105, "height": 105,
"nameCompartment": { "nameCompartment": {
@ -1761,8 +1585,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 993, "left": 704,
"top": 744, "top": 692,
"height": 13, "height": 13,
"alpha": 1.5707963267948966, "alpha": 1.5707963267948966,
"distance": 15, "distance": 15,
@ -1782,8 +1606,8 @@
}, },
"visible": null, "visible": null,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1008, "left": 708,
"top": 744, "top": 706,
"height": 13, "height": 13,
"alpha": 1.5707963267948966, "alpha": 1.5707963267948966,
"distance": 30, "distance": 30,
@ -1803,8 +1627,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 964, "left": 695,
"top": 743, "top": 663,
"height": 13, "height": 13,
"alpha": -1.5707963267948966, "alpha": -1.5707963267948966,
"distance": 15, "distance": 15,
@ -1824,8 +1648,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 994, "left": 865,
"top": 737, "top": 647,
"height": 13, "height": 13,
"alpha": 0.5235987755982988, "alpha": 0.5235987755982988,
"distance": 30, "distance": 30,
@ -1845,8 +1669,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1007, "left": 867,
"top": 740, "top": 660,
"height": 13, "height": 13,
"alpha": 0.7853981633974483, "alpha": 0.7853981633974483,
"distance": 40, "distance": 40,
@ -1866,8 +1690,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 966, "left": 862,
"top": 732, "top": 619,
"height": 13, "height": 13,
"alpha": -0.5235987755982988, "alpha": -0.5235987755982988,
"distance": 25, "distance": 25,
@ -1886,12 +1710,12 @@
"$ref": "AAAAAAGHwVHBhV+9K5M=" "$ref": "AAAAAAGHwVHBhV+9K5M="
}, },
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 984, "left": 535,
"top": 760, "top": 704,
"width": 48.0517578125, "width": 48.0517578125,
"height": 13, "height": 13,
"alpha": -1.0552473341080453, "alpha": 0.2432285905158279,
"distance": 34.48187929913333, "distance": 52.839379254491625,
"hostEdge": { "hostEdge": {
"$ref": "AAAAAAGHwVHBhl+/C6c=" "$ref": "AAAAAAGHwVHBhl+/C6c="
}, },
@ -1908,7 +1732,7 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1007, "left": 547,
"top": 749, "top": 749,
"height": 13, "height": 13,
"alpha": -0.7853981633974483, "alpha": -0.7853981633974483,
@ -1927,8 +1751,8 @@
"$ref": "AAAAAAGHwVHBhV+9K5M=" "$ref": "AAAAAAGHwVHBhV+9K5M="
}, },
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 945, "left": 513,
"top": 759, "top": 703,
"width": 21.68359375, "width": 21.68359375,
"height": 13, "height": 13,
"alpha": -5.348897275791532, "alpha": -5.348897275791532,
@ -1973,13 +1797,13 @@
], ],
"font": "Arial;13;0", "font": "Arial;13;0",
"head": { "head": {
"$ref": "AAAAAAGHs1tJIWWFFvw=" "$ref": "AAAAAAGHsxATrmDNnOM="
}, },
"tail": { "tail": {
"$ref": "AAAAAAGHszJKAGG0NQ0=" "$ref": "AAAAAAGHszJKAGG0NQ0="
}, },
"lineStyle": 1, "lineStyle": 1,
"points": "980:717;978:783", "points": "887:632;513:736",
"showVisibility": true, "showVisibility": true,
"nameLabel": { "nameLabel": {
"$ref": "AAAAAAGHwVHBhl/Apoc=" "$ref": "AAAAAAGHwVHBhl/Apoc="
@ -3597,8 +3421,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1153, "left": 592,
"top": 815, "top": 785,
"height": 13, "height": 13,
"alpha": 1.5707963267948966, "alpha": 1.5707963267948966,
"distance": 15, "distance": 15,
@ -3618,8 +3442,8 @@
}, },
"visible": null, "visible": null,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1153, "left": 596,
"top": 800, "top": 771,
"height": 13, "height": 13,
"alpha": 1.5707963267948966, "alpha": 1.5707963267948966,
"distance": 30, "distance": 30,
@ -3639,8 +3463,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1153, "left": 583,
"top": 845, "top": 814,
"height": 13, "height": 13,
"alpha": -1.5707963267948966, "alpha": -1.5707963267948966,
"distance": 15, "distance": 15,
@ -3660,8 +3484,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1085, "left": 542,
"top": 815, "top": 771,
"height": 13, "height": 13,
"alpha": 0.5235987755982988, "alpha": 0.5235987755982988,
"distance": 30, "distance": 30,
@ -3681,8 +3505,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1088, "left": 547,
"top": 801, "top": 759,
"height": 13, "height": 13,
"alpha": 0.7853981633974483, "alpha": 0.7853981633974483,
"distance": 40, "distance": 40,
@ -3702,8 +3526,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1081, "left": 530,
"top": 842, "top": 796,
"height": 13, "height": 13,
"alpha": -0.5235987755982988, "alpha": -0.5235987755982988,
"distance": 25, "distance": 25,
@ -3722,8 +3546,8 @@
"$ref": "AAAAAAGHwXrkljsW6h4=" "$ref": "AAAAAAGHwXrkljsW6h4="
}, },
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1168, "left": 589,
"top": 815, "top": 796,
"width": 71.169921875, "width": 71.169921875,
"height": 13, "height": 13,
"alpha": -0.30805284668983113, "alpha": -0.30805284668983113,
@ -3744,8 +3568,8 @@
}, },
"visible": false, "visible": false,
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1218, "left": 643,
"top": 801, "top": 787,
"height": 13, "height": 13,
"alpha": -0.7853981633974483, "alpha": -0.7853981633974483,
"distance": 40, "distance": 40,
@ -3763,9 +3587,9 @@
"$ref": "AAAAAAGHwXrkljsW6h4=" "$ref": "AAAAAAGHwXrkljsW6h4="
}, },
"font": "Arial;13;0", "font": "Arial;13;0",
"left": 1223, "left": 635,
"top": 842, "top": 828,
"width": 5.05908203125, "width": 6.5,
"height": 13, "height": 13,
"alpha": 0.5235987755982988, "alpha": 0.5235987755982988,
"distance": 25, "distance": 25,
@ -3808,10 +3632,10 @@
"$ref": "AAAAAAGHs2HK42c8byg=" "$ref": "AAAAAAGHs2HK42c8byg="
}, },
"tail": { "tail": {
"$ref": "AAAAAAGHs1tJIWWFFvw=" "$ref": "AAAAAAGHsxATrmDNnOM="
}, },
"lineStyle": 1, "lineStyle": 1,
"points": "1060:836;1247:836", "points": "513:785;663:828",
"showVisibility": true, "showVisibility": true,
"nameLabel": { "nameLabel": {
"$ref": "AAAAAAGHwXrkljsZ58k=" "$ref": "AAAAAAGHwXrkljsZ58k="
@ -4289,7 +4113,7 @@
}, },
"name": "Theme", "name": "Theme",
"reference": { "reference": {
"$ref": "AAAAAAGHs1tJIWWDEBQ=" "$ref": "AAAAAAGHsxATrWDLbqE="
}, },
"visibility": "private", "visibility": "private",
"navigable": "navigable", "navigable": "navigable",
@ -4738,7 +4562,7 @@
"$ref": "AAAAAAGHwXrkljsUu9c=" "$ref": "AAAAAAGHwXrkljsUu9c="
}, },
"reference": { "reference": {
"$ref": "AAAAAAGHs1tJIWWDEBQ=" "$ref": "AAAAAAGHsxATrWDLbqE="
}, },
"navigable": false "navigable": false
}, },

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Biblioteque_de_Class
{
internal class Database
{
List<string> listDefaultLogo;
}
}

@ -39,5 +39,7 @@ namespace Biblioteque_de_Class
return null; return null;
} }
public override string ToString() => $"note -> nom : {Nom}\nlogoPATH : {LogoPATH}\nhow many line : {listeLigneTexte.Count()}";
} }
} }

@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Biblioteque_de_Class
{
internal class Tags
{
public string Nom { get; set; }
public string Couleur { get; set; }
public Tags(string nom, string couleur)
{
Nom = nom;
Couleur = couleur;
}
public void ChangerNom(string nom)
{
Nom = nom;
}
public void ChangerCouleur(string couleur)
{
Couleur = couleur;
}
public Tags? RechercherTags(List<Tags> listtags,string rechercher)
{
foreach (Tags tag in listtags)
{
if (tag.Nom == Nom)
{
return tag;
}
}
return null;
}
}
}

@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Biblioteque_de_Class
{
internal class Theme
{
public string Nom { get; set; }
List<string> ListCouleur;
public Theme(string nom, List<string> listCouleur)
{
Nom = nom;
ListCouleur = listCouleur;
}
public List<string> GetColorList()
{
return ListCouleur;
}
public void ChangeColor(string color, string newColor)
{
int longueur = 0;
for (longueur = ListCouleur.Count; longueur != 0; longueur-- )
{
if (ListCouleur[longueur] == color)
{
ListCouleur[longueur] = newColor;
}
}
}
public override string ToString() => $"nom : {Nom}\n";
}
}

@ -15,10 +15,7 @@
NoteList = new List<Note>(); NoteList = new List<Note>();
} }
public override string ToString() public override string ToString() => $"pseudo : {Psd}\nmail : {Mail}\npassword : {Mdp}\nNote possédé : {NoteList.Count}";
{
return $"pseudo : {Psd}\nmail : {Mail}\npassword : {Mdp}\nNote possédé : { NoteList.Count}";
}
} }
} }

@ -7,4 +7,8 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Biblioteque_de_Class\Biblioteque_de_Class.csproj" />
</ItemGroup>
</Project> </Project>

@ -1,2 +1,111 @@
// See https://aka.ms/new-console-template for more information using Biblioteque_de_Class;
Console.WriteLine("Hello, World!");
int boucle = 0;
while (boucle == 0){
int choix = 0;
Console.WriteLine("|--------------------------------------|");
Console.WriteLine("| |");
Console.WriteLine("| Menu pour lister les fonctionnalités |");
Console.WriteLine("| |");
Console.WriteLine("|--------------------------------------|--------|");
Console.WriteLine("| |");
Console.WriteLine("| 1/se connecter |");
Console.WriteLine("| 2/se déconnecter |");
Console.WriteLine("| 3/créer un compte |");
Console.WriteLine("| 4/supprimer un compte |");
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/ajouter des couleurs |");
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("| 19/rechercher une note avec date |");
Console.WriteLine("| 20/modifier tags |");
Console.WriteLine("| 21/modifier compte |");
Console.WriteLine("| 22/modifier note |");
Console.WriteLine("| |");
Console.WriteLine("|-----------------------------------------------|");
switch (Console.ReadLine())
{
case "1":
break;
case "2":
break;
case "3":
break;
case "4":
break;
case "5":
break;
case "6":
break;
case "7":
break;
case "8":
break;
case "9":
break;
case "10":
break;
case "11":
break;
case "12":
break;
case "13":
break;
case "14":
break;
case "15":
break;
case "16":
break;
case "17":
break;
case "18":
break;
case "19":
break;
case "20":
break;
case "21":
break;
case "22":
break;
default:
Console.WriteLine("< Veuillez rentrer une des options proposées à l'ecran ! >");
break;
}
}
Loading…
Cancel
Save