Modification program.cs suite au rapport
continuous-integration/drone/push Build was killed Details

pull/19/head
Liam MONCHANIN 2 years ago
parent b16da74e57
commit 3245980afa

@ -17,6 +17,7 @@ string choixNom;
string choixCouleur;
string choixModif;
string _image = "u";
int image_;
string choix;
string newColor = "u";
string color = "u";
@ -141,9 +142,6 @@ while (boucle == 0)
break;
case "6":///Supprimer une note
Console.WriteLine("Cherchez une note");
nom = Console.ReadLine();
u.SearchNoteByName(nom);
u.DeleteNote(n);
break;
@ -161,9 +159,7 @@ while (boucle == 0)
_searchedNotes = u.SearchNoteByName(nom);
Console.WriteLine("Cherchez un tag");
nom = Console.ReadLine();
_searchedTags = u.SearchTagByName(nom); ///A voir pour faire correctement
Tags tagToAdd = new Tags(nom, color);
tagToAdd = _searchedTags[1];
u.AddTagToNoteList(n, tagToAdd);
break;
@ -184,7 +180,9 @@ while (boucle == 0)
break;
case "11":///Supprimer une image
n.RemoveImage(_image);
Console.WriteLine("Saisir numero de la note");
image_ = Convert.ToInt32(Console.ReadLine());
n.RemoveImage(image_);
break;
case "12":///Deplacer une image
@ -197,14 +195,10 @@ while (boucle == 0)
break;
case "14":///AJouter une note en favori
u.SearchNoteByName(nom);
u.AddFavorite(n);
break;
case "15":///Supprimer une note des favoris
Console.WriteLine("Chercher note");
nom = Console.ReadLine();
u.SearchFavoriteNoteByName(nom);
u.RemoveFavorite(n);
break;
@ -234,7 +228,6 @@ while (boucle == 0)
Console.WriteLine("Cherchez un theme a modifier");
nom = Console.ReadLine();
th = db.GetTheme(nom);
th.ChangeColor(color, newColor);
db.ModifyThemeName(th,nom);
Console.WriteLine("Choisissez trois couleurs");
color = Console.ReadLine();

Loading…
Cancel
Save