DeliveryAncmtAdminWindow: Mark cancelled schedules with Strikethrough
All checks were successful
Test / Run tests (push) Successful in 1m38s
All checks were successful
Test / Run tests (push) Successful in 1m38s
This commit is contained in:
@ -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; }
|
||||
|
Reference in New Issue
Block a user