Automate overdue homework and show outstanding work in teaching mode
CI / build-and-test (push) Canceled after 0s

This commit is contained in:
admin committed 2026-09-25 22:02:00 +02:00
1 parent f3e23ad207
commit 4b73d2bea2
10 files changed
+314 -2

No files matched your search

@@ -26,13 +26,19 @@ public partial class TeachingModeWindow : Window
}
var group = App.Services.GetRequiredService<IGroupRepository>().GetById(lesson.GroupId);
if (group is null) return;
var outstandingHomework = new TeachingModeOutstandingHomeworkViewModel(group.Id, lesson.Date,
App.Services.GetRequiredService<IStudentRepository>(),
App.Services.GetRequiredService<IGroupMembershipRepository>(),
App.Services.GetRequiredService<IParticipationSessionRepository>(),
App.Services.GetRequiredService<IParticipationRepository>());
var window = new TeachingModeWindow
{
DataContext = new TeachingModeViewModel(lesson, group,
App.Services.GetRequiredService<IAlternativeLessonPathRepository>(),
App.Services.GetRequiredService<ILessonRepository>(),
App.Services.GetRequiredService<SeatingPlanTabViewModel>(),
App.Services.GetRequiredService<ParticipationTabViewModel>())
App.Services.GetRequiredService<ParticipationTabViewModel>(),
outstandingHomework)
};
OpenWindows.Add(lesson.Id, window);
window.Closed += (_, _) => OpenWindows.Remove(lesson.Id);
@@ -100,6 +106,7 @@ public partial class TeachingModeWindow : Window
var dialog = new AttendanceHomeworkQuickInputDialog { DataContext = quickVm };
await dialog.ShowDialog(this);
(DataContext as TeachingModeViewModel)?.SeatingPlan.ReloadSeatBadgesFromRepository();
(DataContext as TeachingModeViewModel)?.OutstandingHomework?.Refresh();
}
private void OnClose(object? sender, RoutedEventArgs e) => Close();