From 19f0e016b720f928f9780fa78abc53a0d8a4f372 Mon Sep 17 00:00:00 2001 From: "nicolas.barbosa" Date: Sat, 25 May 2024 10:12:59 +0200 Subject: [PATCH] ajout de plateau --- Sources/MauiSpark/MauiSpark.csproj | 3 ++ Sources/MauiSpark/Pages/Plateau.xaml | 11 ++++++ Sources/MauiSpark/Pages/Plateau.xaml.cs | 9 +++++ Sources/MauiSpark/Views/CTableauScore.xaml | 2 +- Sources/MauiSpark/Views/CTableauScore.xaml.cs | 34 ++++++++----------- 5 files changed, 39 insertions(+), 20 deletions(-) create mode 100644 Sources/MauiSpark/Pages/Plateau.xaml create mode 100644 Sources/MauiSpark/Pages/Plateau.xaml.cs diff --git a/Sources/MauiSpark/MauiSpark.csproj b/Sources/MauiSpark/MauiSpark.csproj index 01cba09..f180fbb 100644 --- a/Sources/MauiSpark/MauiSpark.csproj +++ b/Sources/MauiSpark/MauiSpark.csproj @@ -79,6 +79,9 @@ MSBuild:Compile + + MSBuild:Compile + MSBuild:Compile diff --git a/Sources/MauiSpark/Pages/Plateau.xaml b/Sources/MauiSpark/Pages/Plateau.xaml new file mode 100644 index 0000000..2ffcd6c --- /dev/null +++ b/Sources/MauiSpark/Pages/Plateau.xaml @@ -0,0 +1,11 @@ + + + + + + + + \ No newline at end of file diff --git a/Sources/MauiSpark/Pages/Plateau.xaml.cs b/Sources/MauiSpark/Pages/Plateau.xaml.cs new file mode 100644 index 0000000..8ed32c8 --- /dev/null +++ b/Sources/MauiSpark/Pages/Plateau.xaml.cs @@ -0,0 +1,9 @@ +namespace MauiSpark.Pages; + +public partial class Plateau : ContentPage +{ + public Plateau() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/Sources/MauiSpark/Views/CTableauScore.xaml b/Sources/MauiSpark/Views/CTableauScore.xaml index 684ab52..01cdf7a 100644 --- a/Sources/MauiSpark/Views/CTableauScore.xaml +++ b/Sources/MauiSpark/Views/CTableauScore.xaml @@ -1,4 +1,4 @@ - + diff --git a/Sources/MauiSpark/Views/CTableauScore.xaml.cs b/Sources/MauiSpark/Views/CTableauScore.xaml.cs index 5f7430e..5bdde19 100644 --- a/Sources/MauiSpark/Views/CTableauScore.xaml.cs +++ b/Sources/MauiSpark/Views/CTableauScore.xaml.cs @@ -1,12 +1,8 @@ -using CoreLibrary.Events; using CoreLibrary.Joueurs; using CoreLibrary.Manager; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace MauiSpark.Views; - + +namespace MauiSpark.Views; + public class JoueurClassementNbCoupParPartie { private Manager manager; @@ -31,8 +27,8 @@ public class JoueurClassementNbCoupParPartie this.manager = manager; this.joueur = joueur; } -} - +} + public class JoueurClassementPartieGagnee { private Manager manager; @@ -56,8 +52,8 @@ public class JoueurClassementPartieGagnee this.manager = manager; this.joueur = joueur; } -} - +} + public class JoueurClassementPartieEgalite { private Manager manager; @@ -81,8 +77,8 @@ public class JoueurClassementPartieEgalite this.manager = manager; this.joueur = joueur; } -} - +} + public class JoueurClassementPartiePerdue { private Manager manager; @@ -135,7 +131,7 @@ public class JoueurClassementAlphabet } } - public partial class CTableauScore : ContentView +public partial class CTableauScore : ContentView { public IEnumerable GetClassementNbCoupParPartie() { @@ -179,13 +175,13 @@ public class JoueurClassementAlphabet } - public CTableauScore() - { - InitializeComponent(); + public CTableauScore() + { + InitializeComponent(); } - + public void UpdateClassement(Func> getClassement) { BindingContext = getClassement(); - } + } } \ No newline at end of file