modifications selon l'UML

biblioteque
Liam MONCHANIN 2 years ago
parent 5f58a524fa
commit d2e20a8f4c

File diff suppressed because it is too large Load Diff

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Biblioteque_de_Class
{
internal class BaseData
{
private List<string> DefautLogo { get; set; }
}
}

@ -9,11 +9,13 @@ namespace Biblioteque_de_Class
{
internal class Note
{
public string nom = "Note sans nom";
public string logoPATH = "PATH TO DEFAULT LOGO";
public List<Category> tag;
public int Favori { get; set; }
public DateOnly DateCreation { get;}
private string nom = "Note sans nom";
private string logoPATH = "PATH TO DEFAULT LOGO";
private List<Category> tag;
private int Favori { get; set; }
private DateOnly DateCreation { get;}
private List<Note> ListNote;
private List<string> Favoris;
public Note(string Nnom, string llogoPATH, List<Category> basetags, int favori, string dateCreation)
{
@ -24,7 +26,7 @@ namespace Biblioteque_de_Class
DateCreation = DateOnly.FromDateTime(DateTime.Now);
}
public Note TriDate()
public void TriDate(Note DateCreation)
{
Note temp;
Note n1;
@ -34,15 +36,15 @@ namespace Biblioteque_de_Class
{
if (n1.DateCreation > n2.DateCreation)
{
temp = TabNote[n1.DateCreation];
TabNote[n1.DateCreation] = TabNote[n2.DateCreation];
TabNote[n2.DateCreation] = temp;
temp = ListNote[n1.DateCreation];
ListNote[n1.DateCreation] = ListNote[n2.DateCreation];
ListNote[n2.DateCreation] = temp;
}
else
{
temp = TabNote[n2.DateCreation];
TabNote[n2.DateCreation] = TabNote[n1.DateCreation];
TabNote[n1.DateCreation] = temp;
temp = ListNote[n2.DateCreation];
ListNote[n2.DateCreation] = ListNote[n1.DateCreation];
ListNote[n1.DateCreation] = temp;
}
}

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Biblioteque_de_Class
{
internal class SetTheme
{
private string Theme { get; set; }
}
}

@ -8,13 +8,22 @@ namespace Biblioteque_de_Class
{
internal class Tag
{
public string Tnom { get; set; }
public string Tcouleur { get; set; }
private string Tnom { get; set; }
private string Tcouleur { get; set; }
private List<Tag> listTags;
public Tag(string nom, string couleur)
{
Tnom = nom;
Tcouleur = couleur;
}
public int RechercherTag(Tag nom)
{
}
}
}

@ -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 Theme
{
private List<string> ListeCouleur;
private List<string>[] ListeTheme;
}
}

@ -1,23 +1,26 @@
namespace Biblioteque_de_Class
using System.Runtime.CompilerServices;
namespace Biblioteque_de_Class
{
public class Utilisateur
{
private string Psd { get; set; }
private string Mail { get; set; }
private string Mdp { get; set; }
private List<Note> NoteList;
private List<Utilisateur> listUtilisateur;
public Utilisateur(string Upseudo, string Umail, string Upassword)
{
Psd = Upseudo;
Mail=Umail;
Mdp = Upassword;
NoteList = new List<Note>();
Note.ListNote = new List<Note>();
}
public override string ToString()
{
return $"pseudo : {Psd}\nmail : {Mail}\npassword : {Mdp}\nNote possédé : { NoteList.Count}";
return $"pseudo : {Psd}\nmail : {Mail}\npassword : {Mdp}\nNote possédé : { Note.ListNote.Count}";
}
public int SeConnecter(string pseudo,string mail,string password)

Loading…
Cancel
Save