009_DI-Elec/newFront/c#前端/SWS.CAD/Helper/Converter/StatusToColourConverter.cs

31 lines
814 B
C#
Raw Normal View History

2025-08-15 16:34:31 +08:00
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using SWS.CAD.ViewModels;
2025-09-04 18:28:02 +08:00
using SWS.Model;
2025-08-15 16:34:31 +08:00
namespace SWS.CAD.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();
}
}
}