diff --git a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml
index 4c3ccac..963aa15 100644
--- a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml
+++ b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml
@@ -67,7 +67,7 @@
-
+
@@ -127,7 +127,7 @@
-
+
diff --git a/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml b/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml
index dc13bd2..f83a4e4 100644
--- a/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml
+++ b/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml
@@ -62,7 +62,7 @@
-
+
@@ -116,7 +116,7 @@
-
+
diff --git a/src/BreCalClient/EditTimesAgencyShiftingControl.xaml b/src/BreCalClient/EditTimesAgencyShiftingControl.xaml
index e742510..95e6907 100644
--- a/src/BreCalClient/EditTimesAgencyShiftingControl.xaml
+++ b/src/BreCalClient/EditTimesAgencyShiftingControl.xaml
@@ -106,7 +106,7 @@
-
+
@@ -147,7 +147,7 @@
-
+
diff --git a/src/BreCalClient/EditTimesControl.xaml b/src/BreCalClient/EditTimesControl.xaml
index 465f90b..c691ad6 100644
--- a/src/BreCalClient/EditTimesControl.xaml
+++ b/src/BreCalClient/EditTimesControl.xaml
@@ -152,7 +152,7 @@
-
+
diff --git a/src/BreCalClient/EditTimesTerminalControl.xaml b/src/BreCalClient/EditTimesTerminalControl.xaml
index 0854263..e450322 100644
--- a/src/BreCalClient/EditTimesTerminalControl.xaml
+++ b/src/BreCalClient/EditTimesTerminalControl.xaml
@@ -112,8 +112,8 @@
-
-
+
+
diff --git a/src/BreCalClient/ShipcallControl.xaml.cs b/src/BreCalClient/ShipcallControl.xaml.cs
index 5371b81..4cd3fe9 100644
--- a/src/BreCalClient/ShipcallControl.xaml.cs
+++ b/src/BreCalClient/ShipcallControl.xaml.cs
@@ -253,21 +253,13 @@ namespace BreCalClient
if (this.ShipcallControlModel?.Shipcall?.Evaluation != null)
{
ShipcallControlModel.TrafficLightMode resultColor = (ShipcallControlModel.TrafficLightMode)(this.ShipcallControlModel?.Shipcall?.Evaluation ?? 0); // der nullable Operator hier ist so doof, die VS validation blickts einfach nicht
- switch (resultColor)
+ this.Background = resultColor switch
{
- //case ShipcallControlModel.TrafficLightMode.GREEN:
- // this.Background = Brushes.LightGreen;
- // break;
- case ShipcallControlModel.TrafficLightMode.YELLOW:
- this.Background = Brushes.LightYellow;
- break;
- case ShipcallControlModel.TrafficLightMode.RED:
- this.Background = new SolidColorBrush(Color.FromArgb(200, 255, 100, 100));
- break;
- default:
- this.Background = Brushes.Transparent;
- break;
- }
+ // ShipcallControlModel.TrafficLightMode.GREEN => this.Background = Brushes.LightGreen,
+ ShipcallControlModel.TrafficLightMode.YELLOW => Brushes.LightYellow,
+ ShipcallControlModel.TrafficLightMode.RED => new SolidColorBrush(Color.FromArgb(200, 255, 100, 100)),
+ _ => Brushes.Transparent,
+ };
}
}