diff --git a/Jugenddienst Stunden/App.xaml.cs b/Jugenddienst Stunden/App.xaml.cs
index 7a10127..533f09a 100644
--- a/Jugenddienst Stunden/App.xaml.cs
+++ b/Jugenddienst Stunden/App.xaml.cs
@@ -5,13 +5,11 @@
///
public partial class App : Application {
- ///
- /// Initialisiert eine neue Instanz der -Klasse.
- ///
- public App() {
- InitializeComponent();
-
- MainPage = new AppShell();
- }
-
+ ///
+ /// Initialisiert eine neue Instanz der -Klasse.
+ ///
+ public App() {
+ InitializeComponent();
+ MainPage = new AppShell();
+ }
}
diff --git a/Jugenddienst Stunden/MauiProgram.cs b/Jugenddienst Stunden/MauiProgram.cs
index 98e83e0..b8f0b55 100644
--- a/Jugenddienst Stunden/MauiProgram.cs
+++ b/Jugenddienst Stunden/MauiProgram.cs
@@ -9,13 +9,15 @@ namespace Jugenddienst_Stunden;
/// Das Hauptprogramm.
///
public static class MauiProgram {
-
+
public static MauiApp CreateMauiApp() {
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp()
// Initialize the .NET MAUI Community Toolkit by adding the below line of code
- .UseMauiCommunityToolkit()
+ .UseMauiCommunityToolkit(options => {
+ options.SetShouldEnableSnackbarOnWindows(true);
+ })
.ConfigureFonts(fonts => {
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
diff --git a/Jugenddienst Stunden/Platforms/Android/Resources/values/colors.xml b/Jugenddienst Stunden/Platforms/Android/Resources/values/colors.xml
index afca004..c04d749 100644
--- a/Jugenddienst Stunden/Platforms/Android/Resources/values/colors.xml
+++ b/Jugenddienst Stunden/Platforms/Android/Resources/values/colors.xml
@@ -1,6 +1,6 @@
#512BD4
- #F7931D
+ #2B0B98
#2B0B98
\ No newline at end of file
diff --git a/Jugenddienst Stunden/Platforms/Windows/Package.appxmanifest b/Jugenddienst Stunden/Platforms/Windows/Package.appxmanifest
index 6e8e704..e3df2fc 100644
--- a/Jugenddienst Stunden/Platforms/Windows/Package.appxmanifest
+++ b/Jugenddienst Stunden/Platforms/Windows/Package.appxmanifest
@@ -4,7 +4,9 @@
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
- IgnorableNamespaces="uap rescap">
+ xmlns:com="http://schemas.microsoft.com/appx/manifest/com/windows10"
+ xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
+ IgnorableNamespaces="uap rescap com desktop">
@@ -36,6 +38,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jugenddienst Stunden/ViewModels/StundenViewModel.cs b/Jugenddienst Stunden/ViewModels/StundenViewModel.cs
index 179246f..e9933da 100644
--- a/Jugenddienst Stunden/ViewModels/StundenViewModel.cs
+++ b/Jugenddienst Stunden/ViewModels/StundenViewModel.cs
@@ -203,9 +203,10 @@ internal partial class StundenViewModel : ObservableObject, IQueryAttributable,
try {
BaseResponse dat = await HoursBase.LoadBase("hours&year="+ DateToday.ToString("yyyy") + "&month=" + DateToday.ToString("MM"));
_hour = dat.hour;
+ Settings = dat.settings;
- if (dat.settings.Version != AppInfo.Current.VersionString) {
- InfoEvent?.Invoke(this, "Du solltest deine Programmversion: " + AppInfo.Current.VersionString + " auf Version: " + dat.settings.Version + " updaten");
+ if (Settings.Version != AppInfo.Current.VersionString.Substring(0,5)) {
+ InfoEvent?.Invoke(this, "Update verfügbar: " + AppInfo.Current.VersionString.Substring(0, 5) + " < " + dat.settings.Version + " updaten");
}
//_hour = await HoursBase.LoadData();
RefreshProperties();
@@ -260,8 +261,8 @@ internal partial class StundenViewModel : ObservableObject, IQueryAttributable,
DayTimes = new List();
//TODO: hier könnte auch ein Fehler kommen, dann wäre InfoEvent falsch.
- if (Settings.Version != AppInfo.Current.VersionString) {
- InfoEvent?.Invoke(this, "Du solltest deine Programmversion: " + AppInfo.Current.VersionString + " auf Version: " + Settings.Version + " updaten");
+ if (Settings.Version != AppInfo.Current.VersionString.Substring(0, 5)) {
+ InfoEvent?.Invoke(this, "Update verfügbar: " + AppInfo.Current.VersionString.Substring(0, 5) + " < " + Settings.Version + " updaten");
} else { InfoEvent?.Invoke(this, e.Message); }
} finally {
OnPropertyChanged(nameof(DayTotal));
@@ -270,7 +271,6 @@ internal partial class StundenViewModel : ObservableObject, IQueryAttributable,
OnPropertyChanged(nameof(LoadOverview));
//OnPropertyChanged(nameof(DayTimes));
}
-
}
async void IQueryAttributable.ApplyQueryAttributes(IDictionary query) {
diff --git a/Jugenddienst Stunden/Views/AllNotesPage.xaml b/Jugenddienst Stunden/Views/AllNotesPage.xaml
index bca5dee..3bad812 100644
--- a/Jugenddienst Stunden/Views/AllNotesPage.xaml
+++ b/Jugenddienst Stunden/Views/AllNotesPage.xaml
@@ -1,6 +1,7 @@
+
+
+
+
diff --git a/Jugenddienst Stunden/Views/LoginPage.xaml b/Jugenddienst Stunden/Views/LoginPage.xaml
index a628daf..d2d508e 100644
--- a/Jugenddienst Stunden/Views/LoginPage.xaml
+++ b/Jugenddienst Stunden/Views/LoginPage.xaml
@@ -1,6 +1,7 @@
+
+
+
+
-
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
+
diff --git a/Jugenddienst Stunden/Views/NotePage.xaml b/Jugenddienst Stunden/Views/NotePage.xaml
index e2212b2..e0ec155 100644
--- a/Jugenddienst Stunden/Views/NotePage.xaml
+++ b/Jugenddienst Stunden/Views/NotePage.xaml
@@ -1,12 +1,21 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/Jugenddienst Stunden/Views/StundenPage.xaml b/Jugenddienst Stunden/Views/StundenPage.xaml
index 8b363ff..3ae8fcb 100644
--- a/Jugenddienst Stunden/Views/StundenPage.xaml
+++ b/Jugenddienst Stunden/Views/StundenPage.xaml
@@ -1,6 +1,7 @@
+
+
+
-