[#61] Windows: Use red and green color to indicate type of WineVariety
Test / Run tests (push) Successful in 2m17s

This commit is contained in:
lorenz.stechauner committed 2025-07-08 15:27:13 +02:00
1 parent e6746f76b1
commit c6748055fd
8 files changed
+21 -10

No files matched your search

+2
View File
@@ -1,5 +1,6 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.Windows.Media;
namespace Elwig.Models.Entities {
[Table("wine_variety"), PrimaryKey("SortId")]
@@ -20,6 +21,7 @@ namespace Elwig.Models.Entities {
public bool IsRed => Type == "R";
public bool IsWhite => Type == "W";
public Brush? Color => IsWhite ? Brushes.DarkGreen : IsRed ? Brushes.DarkRed : null;
public WineVar() { }