|
|
|
@ -1,13 +1,15 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace GameAtlas.Models
|
|
|
|
|
{
|
|
|
|
|
public class Manager
|
|
|
|
|
public class Manager : INotifyPropertyChanged
|
|
|
|
|
{
|
|
|
|
|
public List<Jeu> ListJeux { get; private set; }
|
|
|
|
|
public List<Admin> Admins { get; private set; }
|
|
|
|
@ -21,23 +23,29 @@ namespace GameAtlas.Models
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
connectedUser = value;
|
|
|
|
|
//OnPropertyChanged();
|
|
|
|
|
OnPropertyChanged();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private Utilisateur connectedUser;
|
|
|
|
|
|
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
|
|
|
|
|
|
void OnPropertyChanged([CallerMemberName] string propertyName = null)
|
|
|
|
|
=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
|
|
|
|
|
|
public Manager(IPersistanceManager persistance)
|
|
|
|
|
{
|
|
|
|
|
Utilisateurs = new List<Utilisateur>();
|
|
|
|
|
ListJeux = new List<Jeu>();
|
|
|
|
|
Persistance = persistance;
|
|
|
|
|
ConnectedUser = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Manager() {
|
|
|
|
|
ListJeux = new List<Jeu>();
|
|
|
|
|
Admins = new List<Admin>();
|
|
|
|
|
Utilisateurs = new List<Utilisateur>();
|
|
|
|
|
ConnectedUser = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void AddJeux(Jeu jeux)
|
|
|
|
|