From 73f1fd91ea1cde7fad0819908eb8f1ff7fcf061f Mon Sep 17 00:00:00 2001 From: "jeremy.mouyon" Date: Sat, 8 Jun 2024 10:34:39 +0200 Subject: [PATCH] end of game / build edit --- Qwirkle/QwirkleViews/Pages/SetPlayers.xaml.cs | 2 +- Qwirkle/QwirkleViews/PopUpEndGame.xaml.cs | 4 +++- Qwirkle/QwirkleViews/QwirkleViews.csproj | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Qwirkle/QwirkleViews/Pages/SetPlayers.xaml.cs b/Qwirkle/QwirkleViews/Pages/SetPlayers.xaml.cs index b029414..7b0226b 100644 --- a/Qwirkle/QwirkleViews/Pages/SetPlayers.xaml.cs +++ b/Qwirkle/QwirkleViews/Pages/SetPlayers.xaml.cs @@ -54,7 +54,7 @@ public partial class SetPlayers : ContentPage game.GiveTilesToPlayers(); game.SetNextPlayer(); Shell.Current.GoToAsync("Gameboard"); - //Navigation.PushAsync(new Gameboard()); + } diff --git a/Qwirkle/QwirkleViews/PopUpEndGame.xaml.cs b/Qwirkle/QwirkleViews/PopUpEndGame.xaml.cs index fe153d9..34288e2 100644 --- a/Qwirkle/QwirkleViews/PopUpEndGame.xaml.cs +++ b/Qwirkle/QwirkleViews/PopUpEndGame.xaml.cs @@ -1,4 +1,5 @@ using CommunityToolkit.Maui.Views; +using Microsoft.Maui.Controls; using QwirkleClassLibrary.Games; using System.Collections.ObjectModel; @@ -32,7 +33,8 @@ public partial class PopUpEndGame : Popup public async void OnButtonNextClick(object sender, EventArgs e) { - await CloseAsync(); + Close(); + await Shell.Current.GoToAsync("MainPage"); } } diff --git a/Qwirkle/QwirkleViews/QwirkleViews.csproj b/Qwirkle/QwirkleViews/QwirkleViews.csproj index 5c997e5..3f682eb 100644 --- a/Qwirkle/QwirkleViews/QwirkleViews.csproj +++ b/Qwirkle/QwirkleViews/QwirkleViews.csproj @@ -60,7 +60,7 @@ - +