26 lines
707 B
C#
26 lines
707 B
C#
![]() |
using System;
|
|||
|
using System.Globalization;
|
|||
|
using System.Windows.Data;
|
|||
|
using DI_Electrical.ViewModels;
|
|||
|
|
|||
|
namespace DI_Electrical.Helper.Converter
|
|||
|
{
|
|||
|
internal class StatusToColourConverter : IValueConverter
|
|||
|
{
|
|||
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|||
|
{
|
|||
|
SignalManagementInfo smif = value as SignalManagementInfo;
|
|||
|
if (smif != null)
|
|||
|
{
|
|||
|
return smif.Status;
|
|||
|
}
|
|||
|
return null;
|
|||
|
}
|
|||
|
|
|||
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|