From 17be817e23a0b53e10b6445bee9fd941c0eb4dfe Mon Sep 17 00:00:00 2001 From: DaPi Date: Mon, 14 Oct 2024 11:30:51 +0200 Subject: [PATCH] =?UTF-8?q?Variable=20H=C3=B6he=20der=20Stundenliste?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jugenddienst Stunden/AppShell.xaml.cs | 4 ++++ Jugenddienst Stunden/MauiProgram.cs | 3 ++- Jugenddienst Stunden/Views/AllNotesPage.xaml | 2 +- Jugenddienst Stunden/Views/LoginPage.xaml.cs | 3 ++- Jugenddienst Stunden/Views/StundenPage.xaml | 8 ++++---- Jugenddienst Stunden/Views/StundenPage.xaml.cs | 10 ++++++++++ 6 files changed, 23 insertions(+), 7 deletions(-) diff --git a/Jugenddienst Stunden/AppShell.xaml.cs b/Jugenddienst Stunden/AppShell.xaml.cs index f50557b..90a52f4 100644 --- a/Jugenddienst Stunden/AppShell.xaml.cs +++ b/Jugenddienst Stunden/AppShell.xaml.cs @@ -12,5 +12,9 @@ public partial class AppShell : Shell { //Seiten, die nicht in der Appshell sichtbar sind, aber trotzdem aufgerufen werden können Routing.RegisterRoute(nameof(Views.NotePage), typeof(Views.NotePage)); Routing.RegisterRoute(nameof(Views.StundePage), typeof(Views.StundePage)); + + } + + } diff --git a/Jugenddienst Stunden/MauiProgram.cs b/Jugenddienst Stunden/MauiProgram.cs index 3e5a750..9881125 100644 --- a/Jugenddienst Stunden/MauiProgram.cs +++ b/Jugenddienst Stunden/MauiProgram.cs @@ -1,4 +1,5 @@ -using ZXing.Net.Maui.Controls; +using Microsoft.Extensions.Logging; +using ZXing.Net.Maui.Controls; namespace Jugenddienst_Stunden; diff --git a/Jugenddienst Stunden/Views/AllNotesPage.xaml b/Jugenddienst Stunden/Views/AllNotesPage.xaml index 9667f52..bca5dee 100644 --- a/Jugenddienst Stunden/Views/AllNotesPage.xaml +++ b/Jugenddienst Stunden/Views/AllNotesPage.xaml @@ -12,7 +12,7 @@ - + diff --git a/Jugenddienst Stunden/Views/LoginPage.xaml.cs b/Jugenddienst Stunden/Views/LoginPage.xaml.cs index 17c64f5..4f8827c 100644 --- a/Jugenddienst Stunden/Views/LoginPage.xaml.cs +++ b/Jugenddienst Stunden/Views/LoginPage.xaml.cs @@ -60,7 +60,8 @@ public partial class LoginPage : ContentPage { Preferences.Default.Set("EmployeeId", int.Parse(op.id)); await DisplayAlert("Login erfolgreich", op.name + " " + op.surname, "OK"); - await Navigation.PopAsync(); + if (Navigation.NavigationStack.Count > 1) + await Navigation.PopAsync(); } catch (Exception e) { await DisplayAlert("Fehler", e.Message, "OK"); } diff --git a/Jugenddienst Stunden/Views/StundenPage.xaml b/Jugenddienst Stunden/Views/StundenPage.xaml index 40dd133..d041ba0 100644 --- a/Jugenddienst Stunden/Views/StundenPage.xaml +++ b/Jugenddienst Stunden/Views/StundenPage.xaml @@ -18,14 +18,14 @@ - + - + @@ -37,7 +37,7 @@ @@ -92,7 +92,7 @@