1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using Aitex.Core.RT.Log;
- 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 MECF.Framework.Common.CommonData.EnumData
- {
- public enum LeakCheckStatusEnum
- {
- None = 0,
- BasePressureCheck = 10,
- LeakCheck = 20,
- LeakCheckDelay = 30,
- }
- public class LeakCheckStatusColorConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value is int intValue)
- {
- var status = (LeakCheckStatusEnum)intValue;
- return status.ToString();
- }
- throw new ArgumentException("Invalid type", nameof(value));
- }
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
- }
|