WaferDropConverter.cs 563 B

12345678910111213141516171819202122
  1. using Bolt.Toolkit.Wpf.Data.Enum;
  2. using System;
  3. using System.Globalization;
  4. using System.Windows.Data;
  5. namespace Bolt.Toolkit.Wpf.Converters
  6. {
  7. public class WaferDropConverter : IValueConverter
  8. {
  9. public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  10. {
  11. var status = (WaferStatus)value;
  12. return (status == WaferStatus.Empty || status == WaferStatus.Dummy);
  13. }
  14. public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  15. {
  16. throw new NotImplementedException();
  17. }
  18. }
  19. }