blob: a995ab62cf7e13f7e1feb81085cfec966de7c79e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using System;
using System.Globalization;
using System.Windows.Data;
namespace Gestor.Common.Converters;
public class ComparativoToolTipConverter : IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
string arg = ((!(values[0] is int)) ? "R$" : "");
return $"VALOR EM {values[0]}: {arg} {values[1]}";
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
{
return null;
}
}
|