Only show active contract area

This commit is contained in:
2023-04-16 23:27:27 +02:00
parent d049424615
commit d4e217efad
3 changed files with 10 additions and 1 deletions

View File

@ -10,6 +10,9 @@ using System.Windows.Controls.Primitives;
namespace Elwig.Helpers {
public static class Utils {
public static int CurrentSeason => DateTime.Now.Year - (DateTime.Now.Month <= 3 ? 1 : 0);
public static void SetInputChanged(Control input) {
var brush = Brushes.Orange;
if (input is ComboBox cb) {