using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Data; namespace Muchinfo.MTPClient.Infrastructure.Converters { public class NumToTicketIsEnabledConvert : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = string.Empty; if (value != null) { if ((int)value == 2) { return false; } else { return true; } } return result; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } } public class NumToTicketIsCheckedConvert : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = string.Empty; if (value != null) { if ((int)value == 2) { return true; } else { return false; } } return result; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } } }