Files
cfs-Tracker/Views/QuickEntryPage.xaml.cs
T
Djagor d85f2e0fb3 Farbpalette vorladen lassen
Bootstraper läd jetzt die farbeinstellung sofort und nicht nachträglich

cleanup and rework

PDF switch to HTML

export fix

Colorsystem

Farben für knöpfe hinzugefügt als anpassung

button color

button color primary and secondary change
2026-03-24 21:59:59 +01:00

36 lines
857 B
C#

using cfs_tracker.ViewModels;
namespace cfs_tracker.Views;
public partial class QuickEntryPage : ContentPage, IQueryAttributable
{
private readonly QuickEntryViewModel _vm;
private bool _initialized;
public QuickEntryPage(QuickEntryViewModel vm)
{
InitializeComponent();
BindingContext = _vm = vm;
}
protected override async void OnAppearing()
{
base.OnAppearing();
if (_initialized)
return;
_initialized = true;
await _vm.InitializeAsync();
}
public void ApplyQueryAttributes(IDictionary<string, object> query)
{
query.TryGetValue("date", out var dateValue);
query.TryGetValue("entryId", out var entryIdValue);
_vm.ApplyQuery(
dateValue?.ToString() ?? string.Empty,
entryIdValue?.ToString());
}
}