diff --git a/Sources/Stim/AddGameMessagePopup.xaml.cs b/Sources/Stim/AddGameMessagePopup.xaml.cs deleted file mode 100644 index 6bbee1d..0000000 --- a/Sources/Stim/AddGameMessagePopup.xaml.cs +++ /dev/null @@ -1,17 +0,0 @@ -using CommunityToolkit.Maui.Views; - -namespace Stim; - -public partial class AddGameMessagePopup : Popup -{ - public AddGameMessagePopup(string message) - { - InitializeComponent(); - placeholder.Text = message; - } - - public void CloseButton(object sender, EventArgs e) - { - Close(); - } -} \ No newline at end of file diff --git a/Sources/Stim/AddGamePage.xaml.cs b/Sources/Stim/AddGamePage.xaml.cs index 7655369..db7d2c8 100644 --- a/Sources/Stim/AddGamePage.xaml.cs +++ b/Sources/Stim/AddGamePage.xaml.cs @@ -34,7 +34,7 @@ public partial class AddGamePage : ContentPage } // //if (_ImgPath!=null) NameEntry.Text + ".png"; // //System.IO.File.Copy(_ImgPath, /**/, true); - await this.ShowPopupAsync(new AddGameMessagePopup(message)); + await this.ShowPopupAsync(new MessagePopup(message)); } private async void Button_Clicked(object sender, EventArgs e) diff --git a/Sources/Stim/DetailledPage.xaml.cs b/Sources/Stim/DetailledPage.xaml.cs index cc3b869..ceae734 100644 --- a/Sources/Stim/DetailledPage.xaml.cs +++ b/Sources/Stim/DetailledPage.xaml.cs @@ -1,3 +1,4 @@ +using CommunityToolkit.Maui.Views; using Model; using StimPersistance; @@ -39,8 +40,9 @@ public partial class DetailledPage : ContentPage //popup add review } - private void AddFollow(object sender, EventArgs e) + private async void AddFollow(object sender, EventArgs e) { + await this.ShowPopupAsync(new MessagePopup("Jeu ajouté dans les suivis !")); ((App)App.Current).Manager.CurrentUser.FollowAGame(CurrGame); } } \ No newline at end of file diff --git a/Sources/Stim/EntryPopup.xaml b/Sources/Stim/EntryPopup.xaml new file mode 100644 index 0000000..2a0b30b --- /dev/null +++ b/Sources/Stim/EntryPopup.xaml @@ -0,0 +1,14 @@ + + + + +