4 changed files with 44 additions and 3 deletions
@ -0,0 +1,31 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Globalization; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Data; |
|||
|
|||
namespace Audit.ConvertMoels |
|||
{ |
|||
internal class GramsSQLConvert : IValueConverter |
|||
{ |
|||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|||
{ |
|||
string G = value.ToString(); |
|||
if (G == "0") |
|||
{ |
|||
return "red"; |
|||
} |
|||
else |
|||
{ |
|||
return "black"; |
|||
} |
|||
} |
|||
|
|||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) |
|||
{ |
|||
return null; |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue