|
|
|
@ -9,6 +9,7 @@ string Upassword;
|
|
|
|
|
string Name;
|
|
|
|
|
string Name2;
|
|
|
|
|
string nom;
|
|
|
|
|
string nom2;
|
|
|
|
|
string logoPath;
|
|
|
|
|
string choixNom;
|
|
|
|
|
string choixCouleur;
|
|
|
|
@ -17,19 +18,21 @@ string name2;
|
|
|
|
|
int choixModif;
|
|
|
|
|
int choix2 = 0;
|
|
|
|
|
string color;
|
|
|
|
|
string couleur;
|
|
|
|
|
string newColor;
|
|
|
|
|
string position;
|
|
|
|
|
string linkimage;
|
|
|
|
|
List <string> NewColorList;
|
|
|
|
|
List <string> listCouleurs;
|
|
|
|
|
|
|
|
|
|
NoteImage image = new NoteImage();
|
|
|
|
|
NoteImage image = new NoteImage(nom2, linkimage, position);
|
|
|
|
|
Database db= new Database();
|
|
|
|
|
Utilisateur u = new Utilisateur(Upseudo, Umail, Upassword);
|
|
|
|
|
Note n = new Note();
|
|
|
|
|
Tags t = new Tags();
|
|
|
|
|
Note n = new Note(nom, logoPath, u);
|
|
|
|
|
Tags t = new Tags(name, couleur);
|
|
|
|
|
|
|
|
|
|
int boucle = 0;
|
|
|
|
|
while (boucle == 0){
|
|
|
|
|
int choix = 0;
|
|
|
|
|
Console.WriteLine("|--------------------------------------|");
|
|
|
|
|
Console.WriteLine("| |");
|
|
|
|
|
Console.WriteLine("| Menu pour lister les fonctionnalités |");
|
|
|
|
@ -69,8 +72,8 @@ while (boucle == 0){
|
|
|
|
|
{
|
|
|
|
|
case "1": ///Connexion
|
|
|
|
|
u = db.GetUtilisateur(Name);
|
|
|
|
|
db.TrouverMail(u.Mail);
|
|
|
|
|
db.CorrespondPassword(u.Password);
|
|
|
|
|
db.TrouverMail(u.Mail.get);
|
|
|
|
|
db.CorrespondPassword(u.Password.get);
|
|
|
|
|
if (db.ListUtilisateur.Contains(u))
|
|
|
|
|
{
|
|
|
|
|
u.connecte.set(true);
|
|
|
|
|