using System; using System.Globalization; using System.Windows.Data; namespace Dominion.NET_WPF.Converters { public class ConstraintTypeEnableConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is DominionBase.Cards.ConstraintType vConstraintType) { switch (vConstraintType) { case DominionBase.Cards.ConstraintType.Unknown: case DominionBase.Cards.ConstraintType.CardMustUse: case DominionBase.Cards.ConstraintType.CardDontUse: return false; } } return true; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } public class IntRangeMinConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return true; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } public class ShowToolTipConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return true; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }