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

Loading…
Cancel
Save