d11f0e46c0
clean up and fixes - Heute gefixt - Code Cleanup NotificationScheduleItemViewModel -fixed NotificationScheduleItemViewModel for Windows compat push implementation Push fixes Push benachrichtungen eingebaut - Status bei push - Push auch in background - Toggle für symtome angepasst push system change exporter update Optionen fix - Optionen aufgeteilt auf 3 tabs - Anpassungen haben jetzt Farbslider Optimierung fix
34 lines
939 B
C#
34 lines
939 B
C#
using cfs_tracker.ViewModels;
|
|
|
|
namespace cfs_tracker.Views;
|
|
|
|
public partial class QuickEntryPage : ContentPage, IQueryAttributable
|
|
{
|
|
private readonly QuickEntryViewModel _vm;
|
|
|
|
public QuickEntryPage(QuickEntryViewModel vm)
|
|
{
|
|
InitializeComponent();
|
|
BindingContext = _vm = vm;
|
|
}
|
|
|
|
protected override async void OnAppearing()
|
|
{
|
|
base.OnAppearing();
|
|
await _vm.InitializeAsync();
|
|
}
|
|
|
|
public void ApplyQueryAttributes(IDictionary<string, object> query)
|
|
{
|
|
query.TryGetValue("date", out var dateValue);
|
|
query.TryGetValue("entryId", out var entryIdValue);
|
|
query.TryGetValue("status", out var statusValue);
|
|
query.TryGetValue("commit", out var commitValue);
|
|
|
|
_vm.ApplyQuery(
|
|
dateValue?.ToString() ?? string.Empty,
|
|
entryIdValue?.ToString(),
|
|
statusValue?.ToString(),
|
|
commitValue?.ToString());
|
|
}
|
|
} |