using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; using System.Windows.Media; namespace BPASmartClient.DosingSystem.Converter { public class DataTableRedundantConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value != null && value is bool bit) { if (bit) return new SolidColorBrush(Color.FromArgb(255, 245, 63, 98)); else return new SolidColorBrush(Color.FromArgb(255, 42, 178, 231)); } return default; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }