diff --git a/source/Trek-12/Models/Game/Player.cs b/source/Trek-12/Models/Game/Player.cs
index f363eb4..9ac6b8a 100644
--- a/source/Trek-12/Models/Game/Player.cs
+++ b/source/Trek-12/Models/Game/Player.cs
@@ -1,10 +1,12 @@
-namespace Models.Game
+using System.ComponentModel;
+
+namespace Models.Game
{
///
/// Represents a player in the game.
///
- public class Player
+ public class Player : INotifyPropertyChanged
{
///
/// It is he pseudo of the player.
@@ -46,6 +48,16 @@
ProfilePicture = profilePicture;
}
+ public event PropertyChangedEventHandler? PropertyChanged;
+
+ void OnPropertyChanged(string propertyName)
+ {
+ if (PropertyChanged != null)
+ {
+ PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+
///
/// Chooses the operation for the player.
///
diff --git a/source/Trek-12/Stub/Stub.cs b/source/Trek-12/Stub/Stub.cs
new file mode 100644
index 0000000..03b7013
--- /dev/null
+++ b/source/Trek-12/Stub/Stub.cs
@@ -0,0 +1,29 @@
+using System.Collections.ObjectModel;
+using System.Data;
+using System.Numerics;
+using Models.Game;
+
+namespace Stub
+{
+ public class Stub
+ {
+ public ReadOnlyObservableCollection ListPlayer { get; private set; }
+ private readonly ObservableCollection listplayer = new ObservableCollection();
+
+ public Stub()
+ {
+ LoadPlayer();
+ ListPlayer = new ReadOnlyObservableCollection(listplayer);
+ }
+
+ public void LoadPlayer()
+ {
+
+ listplayer.Add(new Player());
+ listplayer.Add(new Player("Lucas"));
+ listplayer.Add(new Player("relavergne"));
+ listplayer.Add(new Player("reneveu"));
+
+ }
+ }
+}
diff --git a/source/Trek-12/Stub/Stub.csproj b/source/Trek-12/Stub/Stub.csproj
new file mode 100644
index 0000000..8dcc508
--- /dev/null
+++ b/source/Trek-12/Stub/Stub.csproj
@@ -0,0 +1,13 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
+
+
+
+
diff --git a/source/Trek-12/Trek-12.sln b/source/Trek-12/Trek-12.sln
index fda4705..4ce1243 100644
--- a/source/Trek-12/Trek-12.sln
+++ b/source/Trek-12/Trek-12.sln
@@ -13,6 +13,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataContractPersistence", "DataContractPersistence\DataContractPersistence.csproj", "{FC6A23C3-A1E3-4BF4-85B0-404D8574E190}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stub", "Stub\Stub.csproj", "{49360F7D-C59D-4B4F-AF5A-73FF61D9EF9B}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -41,6 +43,10 @@ Global
{FC6A23C3-A1E3-4BF4-85B0-404D8574E190}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FC6A23C3-A1E3-4BF4-85B0-404D8574E190}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FC6A23C3-A1E3-4BF4-85B0-404D8574E190}.Release|Any CPU.Build.0 = Release|Any CPU
+ {49360F7D-C59D-4B4F-AF5A-73FF61D9EF9B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {49360F7D-C59D-4B4F-AF5A-73FF61D9EF9B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {49360F7D-C59D-4B4F-AF5A-73FF61D9EF9B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {49360F7D-C59D-4B4F-AF5A-73FF61D9EF9B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/source/Trek-12/Trek-12/Views/Components/ContentLeaderBoard.xaml b/source/Trek-12/Trek-12/Resources/Views/Components/ContentLeaderBoard.xaml
similarity index 100%
rename from source/Trek-12/Trek-12/Views/Components/ContentLeaderBoard.xaml
rename to source/Trek-12/Trek-12/Resources/Views/Components/ContentLeaderBoard.xaml
diff --git a/source/Trek-12/Trek-12/Views/Components/ContentLeaderBoard.xaml.cs b/source/Trek-12/Trek-12/Resources/Views/Components/ContentLeaderBoard.xaml.cs
similarity index 100%
rename from source/Trek-12/Trek-12/Views/Components/ContentLeaderBoard.xaml.cs
rename to source/Trek-12/Trek-12/Resources/Views/Components/ContentLeaderBoard.xaml.cs
diff --git a/source/Trek-12/Trek-12/Views/Components/viewsProfils.xaml b/source/Trek-12/Trek-12/Resources/Views/Components/viewsProfils.xaml
similarity index 100%
rename from source/Trek-12/Trek-12/Views/Components/viewsProfils.xaml
rename to source/Trek-12/Trek-12/Resources/Views/Components/viewsProfils.xaml
diff --git a/source/Trek-12/Trek-12/Views/Components/viewsProfils.xaml.cs b/source/Trek-12/Trek-12/Resources/Views/Components/viewsProfils.xaml.cs
similarity index 100%
rename from source/Trek-12/Trek-12/Views/Components/viewsProfils.xaml.cs
rename to source/Trek-12/Trek-12/Resources/Views/Components/viewsProfils.xaml.cs
diff --git a/source/Trek-12/Trek-12/Views/PageLeaderBoard.xaml b/source/Trek-12/Trek-12/Resources/Views/PageLeaderBoard.xaml
similarity index 76%
rename from source/Trek-12/Trek-12/Views/PageLeaderBoard.xaml
rename to source/Trek-12/Trek-12/Resources/Views/PageLeaderBoard.xaml
index fb1dff7..4420404 100644
--- a/source/Trek-12/Trek-12/Views/PageLeaderBoard.xaml
+++ b/source/Trek-12/Trek-12/Resources/Views/PageLeaderBoard.xaml
@@ -1,43 +1,54 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/Trek-12/Trek-12/Views/PageLeaderBoard.xaml.cs b/source/Trek-12/Trek-12/Resources/Views/PageLeaderBoard.xaml.cs
similarity index 60%
rename from source/Trek-12/Trek-12/Views/PageLeaderBoard.xaml.cs
rename to source/Trek-12/Trek-12/Resources/Views/PageLeaderBoard.xaml.cs
index 543413d..8d65cbb 100644
--- a/source/Trek-12/Trek-12/Views/PageLeaderBoard.xaml.cs
+++ b/source/Trek-12/Trek-12/Resources/Views/PageLeaderBoard.xaml.cs
@@ -1,9 +1,12 @@
-namespace Trek_12.Views;
-
-public partial class PageLeaderBoard : ContentPage
-{
- public PageLeaderBoard()
- {
- InitializeComponent();
- }
+namespace Trek_12.Views;
+using Stub;
+
+public partial class PageLeaderBoard : ContentPage
+{
+ public Stub MyStub { get; set; } = new Stub();
+ public PageLeaderBoard()
+ {
+ InitializeComponent();
+ BindingContext = MyStub;
+ }
}
\ No newline at end of file
diff --git a/source/Trek-12/Trek-12/Views/PageMenuPrincipal.xaml b/source/Trek-12/Trek-12/Resources/Views/PageMenuPrincipal.xaml
similarity index 100%
rename from source/Trek-12/Trek-12/Views/PageMenuPrincipal.xaml
rename to source/Trek-12/Trek-12/Resources/Views/PageMenuPrincipal.xaml
diff --git a/source/Trek-12/Trek-12/Views/PageMenuPrincipal.xaml.cs b/source/Trek-12/Trek-12/Resources/Views/PageMenuPrincipal.xaml.cs
similarity index 100%
rename from source/Trek-12/Trek-12/Views/PageMenuPrincipal.xaml.cs
rename to source/Trek-12/Trek-12/Resources/Views/PageMenuPrincipal.xaml.cs
diff --git a/source/Trek-12/Trek-12/Views/pageProfils.xaml b/source/Trek-12/Trek-12/Resources/Views/pageProfils.xaml
similarity index 100%
rename from source/Trek-12/Trek-12/Views/pageProfils.xaml
rename to source/Trek-12/Trek-12/Resources/Views/pageProfils.xaml
diff --git a/source/Trek-12/Trek-12/Views/pageProfils.xaml.cs b/source/Trek-12/Trek-12/Resources/Views/pageProfils.xaml.cs
similarity index 100%
rename from source/Trek-12/Trek-12/Views/pageProfils.xaml.cs
rename to source/Trek-12/Trek-12/Resources/Views/pageProfils.xaml.cs
diff --git a/source/Trek-12/Trek-12/Views/pageRegles.xaml b/source/Trek-12/Trek-12/Resources/Views/pageRegles.xaml
similarity index 100%
rename from source/Trek-12/Trek-12/Views/pageRegles.xaml
rename to source/Trek-12/Trek-12/Resources/Views/pageRegles.xaml
diff --git a/source/Trek-12/Trek-12/Views/pageRegles.xaml.cs b/source/Trek-12/Trek-12/Resources/Views/pageRegles.xaml.cs
similarity index 100%
rename from source/Trek-12/Trek-12/Views/pageRegles.xaml.cs
rename to source/Trek-12/Trek-12/Resources/Views/pageRegles.xaml.cs
diff --git a/source/Trek-12/Trek-12/Trek-12.csproj b/source/Trek-12/Trek-12/Trek-12.csproj
index 51d65e3..beef780 100644
--- a/source/Trek-12/Trek-12/Trek-12.csproj
+++ b/source/Trek-12/Trek-12/Trek-12.csproj
@@ -64,27 +64,29 @@
-
+
+
+
+
+
+
PageLeaderBoard.xaml
-
+
PageProfils.xaml
-
+
PageRegles.xaml
-
+
MSBuild:Compile
-
+
MSBuild:Compile
-
- MSBuild:Compile
-