From 617c34f5df95a719879a44d607042a10ba742fee Mon Sep 17 00:00:00 2001 From: Leon Hoppe Date: Fri, 21 Nov 2025 16:16:05 +0100 Subject: [PATCH] Finished capture page --- src/WorkTime.Mobile/MauiProgram.cs | 2 + src/WorkTime.Mobile/Pages/CapturePage.xaml | 19 ++-- src/WorkTime.Mobile/Pages/CapturePage.xaml.cs | 51 +++++++-- .../Pages/Components/AddEntryModal.xaml | 48 ++++++++ .../Pages/Components/AddEntryModal.xaml.cs | 105 ++++++++++++++++++ .../Pages/Components/CaptureEntry.xaml | 33 ++++++ .../Pages/Components/CaptureEntry.xaml.cs | 14 +++ .../Resources/AppIcon/appiconfg.png | Bin 12810 -> 23553 bytes src/modules/WorkTime.Models/TimeEntry.cs | 16 +++ 9 files changed, 274 insertions(+), 14 deletions(-) create mode 100644 src/WorkTime.Mobile/Pages/Components/AddEntryModal.xaml create mode 100644 src/WorkTime.Mobile/Pages/Components/AddEntryModal.xaml.cs create mode 100644 src/WorkTime.Mobile/Pages/Components/CaptureEntry.xaml create mode 100644 src/WorkTime.Mobile/Pages/Components/CaptureEntry.xaml.cs diff --git a/src/WorkTime.Mobile/MauiProgram.cs b/src/WorkTime.Mobile/MauiProgram.cs index 285210e..19fe17e 100644 --- a/src/WorkTime.Mobile/MauiProgram.cs +++ b/src/WorkTime.Mobile/MauiProgram.cs @@ -3,6 +3,7 @@ using MauiIcons.Material; using Microsoft.Extensions.Logging; using WorkTime.Database; using WorkTime.Mobile.Pages; +using WorkTime.Mobile.Pages.Components; namespace WorkTime.Mobile; @@ -22,6 +23,7 @@ public static class MauiProgram { builder.Services.AddTransient(); builder.Services.AddTransient(); + builder.Services.AddTransient(); #if DEBUG builder.Logging.AddDebug(); diff --git a/src/WorkTime.Mobile/Pages/CapturePage.xaml b/src/WorkTime.Mobile/Pages/CapturePage.xaml index f22331f..7ccd60d 100644 --- a/src/WorkTime.Mobile/Pages/CapturePage.xaml +++ b/src/WorkTime.Mobile/Pages/CapturePage.xaml @@ -15,23 +15,28 @@ Command="{Binding LoadDateCommand}" /> - + + + + - - + - +