[#43] App: Use FileSystemWatcher to renew contexts on demand

This commit is contained in:
lorenz.stechauner committed 2024-03-19 13:17:06 +01:00
1 parent 98688168b8
commit 1806b02039
13 files changed
+51 -66

No files matched your search

+1 -2
View File
@@ -36,8 +36,7 @@ namespace Elwig.Windows {
}
}
protected override async Task OnRenewContext() {
using var ctx = new AppDbContext();
protected override async Task OnRenewContext(AppDbContext ctx) {
ControlUtils.RenewItemsSource(PaymentVariantList, await ctx.PaymentVariants
.Where(v => v.Year == Year)
.OrderBy(v => v.AvNr)