using System;
using System.Drawing;
using System.Globalization;
using System.Windows.Data;

namespace QC.QTMApplication;

public class BooleanToBackColorConverter : IValueConverter
{
	public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
	{
		Color color = Color.Transparent;
		if (value is bool && (bool)value)
		{
			color = Color.LightBlue;
		}
		return new SolidBrush(color);
	}

	public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
	{
		throw new NotImplementedException();
	}
}
