From 674ca83ba9243a9e95a7568c797668dab6aee26a Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 10:35:25 -0300 Subject: feat: upload files --- .../ComparativoToolTipConverter.cs | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Gestor.Common/Gestor.Common.Converters/ComparativoToolTipConverter.cs (limited to 'Gestor.Common/Gestor.Common.Converters/ComparativoToolTipConverter.cs') diff --git a/Gestor.Common/Gestor.Common.Converters/ComparativoToolTipConverter.cs b/Gestor.Common/Gestor.Common.Converters/ComparativoToolTipConverter.cs new file mode 100644 index 0000000..c10c19a --- /dev/null +++ b/Gestor.Common/Gestor.Common.Converters/ComparativoToolTipConverter.cs @@ -0,0 +1,24 @@ +using System; +using System.Globalization; +using System.Windows.Data; + +namespace Gestor.Common.Converters +{ + public class ComparativoToolTipConverter : IMultiValueConverter + { + public ComparativoToolTipConverter() + { + } + + public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) + { + string str = (!(values[0] is int) ? "R$" : ""); + return string.Format("VALOR EM {0}: {1} {2}", values[0], str, values[1]); + } + + public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) + { + return null; + } + } +} \ No newline at end of file -- cgit v1.2.3