reunification de bibliotheque et console plus ajout de la bibliotheque tag et recherche et maj de certaines bibliotheques

biblioteque
Liam MONCHANIN 2 years ago
parent 11d8ebf044
commit e653b6b5d9

@ -11,12 +11,17 @@ namespace Biblioteque_de_Class
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;}
public Note(string Nnom, string llogoPATH, List<Category> basetags)
public Note(string Nnom, string llogoPATH, List<Category> basetags, int favori, string dateCreation)
{
nom = Nnom;
logoPATH = llogoPATH;
tag = basetags;
Favori = favori;
DateCreation = DateOnly.FromDateTime(DateTime.Now);
}
}
}

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace Biblioteque_de_Class
{
public class Recherche
{
}
}

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Biblioteque_de_Class
{
internal class Tag
{
public string Tnom { get; set; }
public string Tcouleur { get; set; }
public Tag(string nom, string couleur)
{
Tnom = nom;
Tcouleur = couleur;
}
}
}

@ -20,5 +20,17 @@
return $"pseudo : {Psd}\nmail : {Mail}\npassword : {Mdp}\nNote possédé : { NoteList.Count}";
}
public int SeConnecter(string pseudo,string mail,string password)
{
if (pseudo == this.Psd && mail == this.Mail && password == this.Mdp)
return 0;
if (pseudo != this.Psd && mail == this.Mail && password == this.Mdp)
return 1;
if (pseudo == this.Psd && mail != this.Mail && password == this.Mdp)
return 2;
if (pseudo == this.Psd && mail == this.Mail && password != this.Mdp)
return 3;
return 0;
}
}
}

@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

@ -0,0 +1,3 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
Loading…
Cancel
Save