From 671aecfcab60a0b3fc1c497d023a33e5bca437f6 Mon Sep 17 00:00:00 2001 From: hulivet1 Date: Tue, 15 Nov 2022 14:47:02 +0100 Subject: [PATCH] PatchBugetWarns --- Sources/IHM/ForgetPassword.xaml.cs | 5 ++--- Sources/IHM/MainPage.xaml.cs | 7 ++++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Sources/IHM/ForgetPassword.xaml.cs b/Sources/IHM/ForgetPassword.xaml.cs index 37e1e20..795a774 100644 --- a/Sources/IHM/ForgetPassword.xaml.cs +++ b/Sources/IHM/ForgetPassword.xaml.cs @@ -1,4 +1,3 @@ -using Android.Renderscripts; using Model; using Email = Model.Email; @@ -8,8 +7,8 @@ public partial class ForgetPassword : ContentPage { public Manager Mgr => (App.Current as App).Manager; private string code; - private DateTime _startTime; - private CancellationTokenSource _cancellationTokenSource; + //private DateTime _startTime; + //private CancellationTokenSource _cancellationTokenSource; public ForgetPassword() { diff --git a/Sources/IHM/MainPage.xaml.cs b/Sources/IHM/MainPage.xaml.cs index cee9116..627b48d 100644 --- a/Sources/IHM/MainPage.xaml.cs +++ b/Sources/IHM/MainPage.xaml.cs @@ -47,7 +47,12 @@ namespace IHM { await DisplayAlert(s, s1, s2); } - + + protected override bool OnBackButtonPressed() + { + return true; + } + public ICommand TapCommand => new Command(async (page) => await Shell.Current.GoToAsync(page)); } } \ No newline at end of file