DeliveryAncmtAdminWindow: Mark cancelled schedules with Strikethrough
All checks were successful
Test / Run tests (push) Successful in 1m38s

This commit is contained in:
2024-09-17 23:06:18 +02:00
parent 871bc299bd
commit 74200083ab
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,7 @@ using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Windows;
namespace Elwig.Models.Entities {
[Table("delivery_schedule"), PrimaryKey("Year", "DsNr")]
@ -47,6 +48,8 @@ namespace Elwig.Models.Entities {
[Column("cancelled")]
public bool IsCancelled { get; set; }
[NotMapped]
public TextDecorationCollection? TextDecoration => IsCancelled ? TextDecorations.Strikethrough : null;
[Column("ancmt_from")]
public long? AncmtFromUnix { get; set; }