24 lines
580 B
C#
24 lines
580 B
C#
using Avalonia.Data.Converters;
|
|
using Plugin.Cowain.Wcs.ViewModels;
|
|
using System.Globalization;
|
|
|
|
namespace Plugin.Cowain.Wcs.Converters;
|
|
|
|
public class RgvArrowVisibleConverter : IValueConverter
|
|
{
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
if (value is int stationId)
|
|
{
|
|
return stationId > 0;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|