Files
DP44/Common/DTS.CommonCore/.svn/pristine/42/42487b0f45a9beed78577d905337c0f3c5f08937.svn-base

25 lines
797 B
Plaintext
Raw Permalink Normal View History

2026-04-17 14:55:32 -04:00
using System;
using System.Windows.Data;
using System.Windows.Media;
namespace DTS.Common.Converters
{
public class TriggerColorConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value is bool b)
{
if(b) { return BrushesAndColors.Brush_ApplicationStatus_Failed.Color; }
else { return BrushesAndColors.Brush_ApplicationStatus_Waiting.Color; }
}
return Brushes.Transparent.Color;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return null;
}
}
}