diff --git a/Qwirkle/QwirkleViews/App.xaml.cs b/Qwirkle/QwirkleViews/App.xaml.cs index bb478eb..a769596 100644 --- a/Qwirkle/QwirkleViews/App.xaml.cs +++ b/Qwirkle/QwirkleViews/App.xaml.cs @@ -19,6 +19,7 @@ namespace Qwirkle InitializeComponent(); + //MainPage = new NavigationPage(new MainPage()); MainPage = new AppShell(); Routing.RegisterRoute(nameof(SetPlayers), typeof(SetPlayers)); diff --git a/Qwirkle/QwirkleViews/MainPage.xaml.cs b/Qwirkle/QwirkleViews/MainPage.xaml.cs index e4bfe0f..3c55466 100644 --- a/Qwirkle/QwirkleViews/MainPage.xaml.cs +++ b/Qwirkle/QwirkleViews/MainPage.xaml.cs @@ -20,6 +20,7 @@ namespace Qwirkle { DisplayAlert("Game notification", "Enter minimun 2 player and max 4 player !", "Ok ! Lets's go !"); + Navigation.PushAsync(new SetPlayers()); } diff --git a/Qwirkle/QwirkleViews/Views/GoBack.xaml.cs b/Qwirkle/QwirkleViews/Views/GoBack.xaml.cs index cc77872..b157937 100644 --- a/Qwirkle/QwirkleViews/Views/GoBack.xaml.cs +++ b/Qwirkle/QwirkleViews/Views/GoBack.xaml.cs @@ -9,8 +9,8 @@ public partial class GoBack : ContentView InitializeComponent(); } - private async void Button_OnClicked(object? sender, EventArgs e) + private void Button_OnClicked(object? sender, EventArgs e) { - await Navigation.PopToRootAsync(); + Navigation.PopAsync(); } } \ No newline at end of file