20 lines
670 B
C#
20 lines
670 B
C#
|
|
using System;
|
|||
|
|
using System.Windows.Data;
|
|||
|
|
using System.Windows.Media;
|
|||
|
|
namespace DTS.Common.Converters
|
|||
|
|
{
|
|||
|
|
public class BooleanToGreenBorderConverter : IValueConverter
|
|||
|
|
{
|
|||
|
|
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
|||
|
|
{
|
|||
|
|
return value != null && (bool)value ? BrushesAndColors.BrushApplicationStatusPowerGreen : BrushesAndColors.BrushFlatControlDarkForeground;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
|||
|
|
{
|
|||
|
|
return null;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|