终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RunStatusConvert.cs 870 B

2 jaren geleden
1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows.Data;
  8. namespace BPASmartClient.JXJFoodBigStation.Converter
  9. {
  10. public class RunStatusConvert : IValueConverter
  11. {
  12. public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  13. {
  14. if (value is ushort tempValue)
  15. {
  16. if (tempValue == 1) return "等待配料";
  17. if (tempValue == 2) return "配料中";
  18. if (tempValue == 3) return "配料完成";
  19. }
  20. return "等待配料";
  21. }
  22. public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  23. {
  24. throw new NotImplementedException();
  25. }
  26. }
  27. }