Files
Kansan/KanSan/IstFertigZuBackgroundConverter.cs
2020-06-06 18:46:44 +02:00

26 lines
686 B
C#

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Windows.Data;
using System.Windows.Media;
namespace KanSan
{
public class IstFertigZuBackgroundConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var istFertig = (bool)value;
if (istFertig)
return Brushes.Green;
return Brushes.Blue;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}