using DaSaSo.Domain.Model; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; namespace DaSaSo.Wpf.Converters { class EqualDamageTypeToBooleanConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { bool result = (((int)value & (int)parameter) == (int)value); return result; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { //EDamageType result = (EDamageType)parameter; return null; } } }