blob: c10c19a6cc5a404cadcd83263917e327326d92f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}
}
}
|