using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Windows.Data; namespace Dominion.NET_WPF.Converters { public class ConstraintTypeEnableConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value is DominionBase.Cards.ConstraintType) { switch ((DominionBase.Cards.ConstraintType)value) { 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, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } } public class IntRangeMinConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return true; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } } public class ShowToolTipConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return true; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } } }