Ajout de boutons

master
Céleste BARBOSA 11 months ago
commit cb775e3bfc

@ -14,4 +14,14 @@ public partial class Accueil : ContentPage
{
Navigation.PushAsync(new Mode());
}
private void QuandReglesClique (Object? sender, EventArgs e)
{
Navigation.PushAsync(new Regle());
}
private void QuandTableauClique(Object? sender, EventArgs e)
{
Navigation.PushAsync(new TableauScore());
}
}

@ -10,8 +10,15 @@
<conv:IndicateurVersCouleurMAUI x:Key="IndicateurVersCouleurMAUI"/>
<conv:JetonVersTexte x:Key="JetonVersTexte"/>
</ContentPage.Resources>
<Grid RowDefinitions="*" ColumnDefinitions="*, *">
<Grid RowDefinitions="*" ColumnDefinitions="*, *,auto">
<ImageButton
Grid.Column="2"
Style="{StaticResource AccueilBouton}"
Source="pointinterrogation.png"
HorizontalOptions="End"
VerticalOptions="Start"
Clicked="QuandReglesClique"
/>
<Grid RowDefinitions="*" ColumnDefinitions="*" Margin="50">
<Border
Stroke="#000000"

@ -6,4 +6,9 @@ public partial class Regle : ContentPage
{
InitializeComponent();
}
private void QuandButtonArriereClique(object sender, EventArgs e)
{
Navigation.PopAsync();
}
}

@ -3,6 +3,7 @@ using CoreLibrary.Joueurs;
using MauiSpark.Views;
using System.Collections.ObjectModel;
namespace MauiSpark.Pages;
using System.Windows;
public partial class TableauScore : ContentPage
{
@ -11,6 +12,14 @@ public partial class TableauScore : ContentPage
InitializeComponent();
SetDefaultClassement();
}
private void QuandButtonArriereClique(object sender, EventArgs e)
{
Navigation.PopAsync();
}
private void SetDefaultClassement()
{
CTableauScore.UpdateClassement(CTableauScore.GetClassementNbCoupParPartie);

Loading…
Cancel
Save