diff --git a/GameAtlas/.vs/GameAtlas/v17/.suo b/GameAtlas/.vs/GameAtlas/v17/.suo
index a2a0b81..5895707 100644
Binary files a/GameAtlas/.vs/GameAtlas/v17/.suo and b/GameAtlas/.vs/GameAtlas/v17/.suo differ
diff --git a/GameAtlas/GameAtlas/App.xaml.cs b/GameAtlas/GameAtlas/App.xaml.cs
index 6d5a231..a54aafb 100644
--- a/GameAtlas/GameAtlas/App.xaml.cs
+++ b/GameAtlas/GameAtlas/App.xaml.cs
@@ -7,6 +7,7 @@ public partial class App : Application
public Manager MyManager { get; private set; } = new Manager();
public App()
{
+ MyManager.ChargerDonnees();
InitializeComponent();
MainPage = new AppShell();
diff --git a/GameAtlas/GameAtlas/Models/Manager.cs b/GameAtlas/GameAtlas/Models/Manager.cs
index d71ff8c..6010f9d 100644
--- a/GameAtlas/GameAtlas/Models/Manager.cs
+++ b/GameAtlas/GameAtlas/Models/Manager.cs
@@ -34,5 +34,13 @@ namespace GameAtlas.Models
{
Utilisateurs.Add(utilisateur);
}
+
+ public void ChargerDonnees()
+ {
+ Utilisateur user1 = new Utilisateur("test@test.com", "TheAbyssalYT", "AZErty123456@");
+ Utilisateur user2 = new Utilisateur("gmail@gmail.com", "MrLilian24", "mdp_Tres_Securise000");
+ AddUtilisateur(user1);
+ AddUtilisateur(user2);
+ }
}
}
diff --git a/GameAtlas/GameAtlas/Resources/Images/cover_hogwarts.png b/GameAtlas/GameAtlas/Resources/Images/cover_hogwarts.png
new file mode 100644
index 0000000..2d10656
Binary files /dev/null and b/GameAtlas/GameAtlas/Resources/Images/cover_hogwarts.png differ
diff --git a/GameAtlas/GameAtlas/Resources/Images/cover_residentevil4.png b/GameAtlas/GameAtlas/Resources/Images/cover_residentevil4.png
new file mode 100644
index 0000000..12c3ecb
Binary files /dev/null and b/GameAtlas/GameAtlas/Resources/Images/cover_residentevil4.png differ
diff --git a/GameAtlas/GameAtlas/Resources/Images/download.png b/GameAtlas/GameAtlas/Resources/Images/download.png
new file mode 100644
index 0000000..d597336
Binary files /dev/null and b/GameAtlas/GameAtlas/Resources/Images/download.png differ
diff --git a/GameAtlas/GameAtlas/Resources/Images/star.png b/GameAtlas/GameAtlas/Resources/Images/star.png
new file mode 100644
index 0000000..49ec51e
Binary files /dev/null and b/GameAtlas/GameAtlas/Resources/Images/star.png differ
diff --git a/GameAtlas/GameAtlas/Views/PageAccueil.xaml b/GameAtlas/GameAtlas/Views/PageAccueil.xaml
index 3591e85..dfb7f28 100644
--- a/GameAtlas/GameAtlas/Views/PageAccueil.xaml
+++ b/GameAtlas/GameAtlas/Views/PageAccueil.xaml
@@ -2,17 +2,22 @@
+
+
+
+
-
-
+
-
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GameAtlas/GameAtlas/Views/PageAccueil.xaml.cs b/GameAtlas/GameAtlas/Views/PageAccueil.xaml.cs
index 08684f6..5026ae7 100644
--- a/GameAtlas/GameAtlas/Views/PageAccueil.xaml.cs
+++ b/GameAtlas/GameAtlas/Views/PageAccueil.xaml.cs
@@ -1,9 +1,14 @@
+using GameAtlas.Models;
+
namespace GameAtlas.Views;
public partial class PageAcceuil : ContentPage
{
+ public Manager Manager => (App.Current as App).MyManager;
public PageAcceuil()
{
+
InitializeComponent();
+ users.BindingContext = Manager;
}
}
\ No newline at end of file
diff --git a/GameAtlas/GameAtlas/Views/PageInscription.xaml.cs b/GameAtlas/GameAtlas/Views/PageInscription.xaml.cs
index f093640..2f537e8 100644
--- a/GameAtlas/GameAtlas/Views/PageInscription.xaml.cs
+++ b/GameAtlas/GameAtlas/Views/PageInscription.xaml.cs
@@ -1,11 +1,13 @@
namespace GameAtlas.Views;
using GameAtlas.Models;
+using System.Diagnostics;
using System.Text.RegularExpressions;
public partial class PageInscription : ContentPage
{
- public PageInscription()
+ public Manager InscriptionManager => (App.Current as App).MyManager;
+ public PageInscription()
{
InitializeComponent();
}
@@ -36,7 +38,9 @@ public partial class PageInscription : ContentPage
return;
}
-
+ Utilisateur utilisateur = new Utilisateur(mail, username, password);
+ InscriptionManager.AddUtilisateur(utilisateur);
+ Debug.WriteLine(InscriptionManager.Utilisateurs.Count);
await Navigation.PushAsync(new PageAcceuil());
diff --git a/GameAtlas/GameAtlas/Views/PageParcourir.xaml b/GameAtlas/GameAtlas/Views/PageParcourir.xaml
index 2a62008..beea9bd 100644
--- a/GameAtlas/GameAtlas/Views/PageParcourir.xaml
+++ b/GameAtlas/GameAtlas/Views/PageParcourir.xaml
@@ -7,7 +7,7 @@
BackgroundColor="Beige">
-
+