[#43] App: Use FileSystemWatcher to renew contexts on demand
This commit is contained in:
@ -189,9 +189,8 @@ namespace Elwig.Windows {
|
||||
ValidateRequiredInputs();
|
||||
}
|
||||
|
||||
protected override async Task OnRenewContext() {
|
||||
await base.OnRenewContext();
|
||||
using var ctx = new AppDbContext();
|
||||
protected override async Task OnRenewContext(AppDbContext ctx) {
|
||||
await base.OnRenewContext(ctx);
|
||||
ControlUtils.RenewItemsSource(KgInput, await ctx.WbKgs
|
||||
.Include(k => k.AtKg.WbKg!.Rds)
|
||||
.Select(k => k.AtKg)
|
||||
|
Reference in New Issue
Block a user