Daten speichern

This commit is contained in:
2024-09-25 22:22:05 +02:00
parent 3f2191673e
commit 8f7e4bb09e
6 changed files with 46 additions and 58 deletions

View File

@@ -53,6 +53,7 @@ namespace Jugenddienst_Stunden.ViewModels {
public string Holiday {
get => _hour.holiday;
}
public TimeOnly DayTotal { get; set; }
public List<DayTime> DayTimes {
@@ -154,6 +155,8 @@ namespace Jugenddienst_Stunden.ViewModels {
////if (_hour.zeit_total_daily_api != null) {
////TimeDay = _hour.zeit_total_daily_api.Where(static p => p.Day == GetDay.Day).ToList() ?? new List<TimeDay> { new TimeDay { Day = GetDay.Day, Hours = 0 } };
//RefreshProperties();
TimeSpan span = TimeSpan.Zero;
foreach (DayTime dt in _hour.daytime) {
span += dt.end - dt.begin;