终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

28 行
841 B

  1. using System;
  2. using System.Globalization;
  3. using System.Windows.Data;
  4. using System.Windows.Media;
  5. namespace BPASmartClient.DosingSystem.Converter
  6. {
  7. public class DataTableRedundantConverter : IValueConverter
  8. {
  9. public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  10. {
  11. if (value != null && value is bool bit)
  12. {
  13. if (bit)
  14. return new SolidColorBrush(Color.FromArgb(255, 245, 63, 98));
  15. else
  16. return new SolidColorBrush(Color.FromArgb(255, 42, 178, 231));
  17. }
  18. return default;
  19. }
  20. public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  21. {
  22. throw new NotImplementedException();
  23. }
  24. }
  25. }