27 lines
812 B
C#
27 lines
812 B
C#
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 EqualPreperationTypeToBooleanConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
EPreparationType damagevalue = (EPreparationType)value;
|
|
EPreparationType damageParameter = (EPreparationType)parameter;
|
|
return damagevalue.HasFlag(damageParameter);
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|