ePriceModeConverter.cs 851 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. namespace Muchinfo.MTPClient.Infrastructure.Converters
  7. {
  8. /// <summary>
  9. /// 价格模式转换器
  10. /// </summary>
  11. public class ePriceModeConverter
  12. {
  13. public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
  14. {
  15. var tt = value;
  16. return true;
  17. //if (decimal.Parse(value.ToString()) == 1)
  18. //{
  19. // return Visibility.Visible;
  20. //}
  21. //return Visibility.Collapsed;
  22. }
  23. public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
  24. {
  25. throw new NotImplementedException();
  26. }
  27. }
  28. }