From ad3905d3598d79cd728a1be6f13624aa33a1e10b Mon Sep 17 00:00:00 2001 From: BelsethUwU Date: Thu, 8 Jun 2023 11:50:53 +0200 Subject: [PATCH] feat : review pop up --- Sources/Stim/DetailledPage.xaml.cs | 5 ++--- Sources/Stim/LoginPage.xaml | 12 +++++----- Sources/Stim/ProfilPage.xaml | 8 +++---- Sources/Stim/ReviewPopUp.xaml | 16 ++++++++++++++ Sources/Stim/ReviewPopUp.xaml.cs | 35 ++++++++++++++++++++++++++++++ Sources/Stim/Stim.csproj | 6 +++++ Sources/Stim/UserInfo.xaml.cs | 8 ------- 7 files changed, 69 insertions(+), 21 deletions(-) create mode 100644 Sources/Stim/ReviewPopUp.xaml create mode 100644 Sources/Stim/ReviewPopUp.xaml.cs diff --git a/Sources/Stim/DetailledPage.xaml.cs b/Sources/Stim/DetailledPage.xaml.cs index 57e7de1..68acc78 100644 --- a/Sources/Stim/DetailledPage.xaml.cs +++ b/Sources/Stim/DetailledPage.xaml.cs @@ -1,6 +1,5 @@ using CommunityToolkit.Maui.Views; using Model; -using StimPersistance; namespace Stim; @@ -18,9 +17,9 @@ public partial class DetailledPage : ContentPage await Navigation.PushModalAsync(new MainPage()); } - private void AddReview(object sender, EventArgs e) + private async void AddReview(object sender, EventArgs e) { - //popup add review + await this.ShowPopupAsync(new ReviewPopUp((App.Current as App).Manager.SelectedGame)); } private async void AddFollow(object sender, EventArgs e) diff --git a/Sources/Stim/LoginPage.xaml b/Sources/Stim/LoginPage.xaml index 6834cf9..b448d5f 100644 --- a/Sources/Stim/LoginPage.xaml +++ b/Sources/Stim/LoginPage.xaml @@ -1,8 +1,8 @@ - - + + @@ -25,7 +25,7 @@ Grid.Row="1" ClearButtonVisibility="WhileEditing" Text="anthony5"/> - +