You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Security.Cryptography;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CanYouBuildIt.Model
|
|
{
|
|
public class Manager
|
|
{
|
|
public List<Utilisateur> listUtil { get; private set; }
|
|
public IPersistanceManager Persi { get; set; }
|
|
|
|
public Manager()
|
|
{
|
|
listUtil = new List<Utilisateur>();
|
|
}
|
|
public Manager(IPersistanceManager pers)
|
|
{
|
|
listUtil = new List<Utilisateur>();
|
|
Persi = pers;
|
|
}
|
|
|
|
public void chargeDonne()
|
|
{
|
|
var donnee = Persi.chargeDonnee();
|
|
listUtil.AddRange(donnee);
|
|
Console.Write("SJBEVKBV<SBDVK<KBCBJCqCeCsVHQ%LRVKzropjv$ptihujhbgoZRGJ");
|
|
}
|
|
|
|
public void sauvegardeDonnee()
|
|
{
|
|
Persi.sauvegardeDonnee(listUtil);
|
|
}
|
|
|
|
public void ajouterUtilisateur(Utilisateur utilisateur)
|
|
{
|
|
listUtil.Add(utilisateur);
|
|
}
|
|
|
|
}
|
|
}
|