using Bolt.Toolkit.Wpf.Data.Enum; using System; using System.Globalization; using System.Windows.Data; namespace Bolt.Toolkit.Wpf.Converters { public class WaferDropConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var status = (WaferStatus)value; return (status == WaferStatus.Empty || status == WaferStatus.Dummy); } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }