From 11fe85db2337d351a06500702f7f298e315a7e61 Mon Sep 17 00:00:00 2001 From: ImNicolasTheDev Date: Sat, 10 Jun 2023 11:09:33 +0200 Subject: [PATCH] =?UTF-8?q?La=20modification=20et=20la=20suppression=20de?= =?UTF-8?q?=20commentaires=20fonctionne=20+=20BUG=20FIX=20du=20User=20qui?= =?UTF-8?q?=20restait=20connect=C3=A9=20m=C3=AAme=20en=20tant=20qu'invit?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Vues/Accueil.xaml.cs | 1 + Sources/Vues/SearchMob.xaml | 73 +++++++++++++++--------------- Sources/Vues/SearchMob.xaml.cs | 81 ++++++++++++++++++++++++++++++++-- 3 files changed, 117 insertions(+), 38 deletions(-) diff --git a/Sources/Vues/Accueil.xaml.cs b/Sources/Vues/Accueil.xaml.cs index 9cc98cf..f909d09 100644 --- a/Sources/Vues/Accueil.xaml.cs +++ b/Sources/Vues/Accueil.xaml.cs @@ -21,6 +21,7 @@ namespace Vues private async void Invite_Clicked(object sender, EventArgs e) { + (Application.Current as App).User = null; await Navigation.PushAsync(new SearchMob()); } } diff --git a/Sources/Vues/SearchMob.xaml b/Sources/Vues/SearchMob.xaml index 0108dda..b5536b8 100644 --- a/Sources/Vues/SearchMob.xaml +++ b/Sources/Vues/SearchMob.xaml @@ -3,6 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" xmlns:shape="Microsoft.Maui.Controls.Shapes" + xmlns:model="clr-namespace:Model;assembly=Modèle" x:Class="Vues.SearchMob" BackgroundImageSource="backcollection.jpg"> @@ -200,6 +201,29 @@