EDBGS/EliteBGS/MinusFortyFiveConverter.cs
2023-02-22 20:39:40 +01:00

20 lines
527 B
C#

using System.Globalization;
using System.Windows.Data;
using System;
namespace EliteBGS;
public class MinusFortyFiveConverter : IValueConverter {
/// <inheritdoc/>
public object Convert(
object value, Type targetType, object parameter, CultureInfo culture) {
return (double)value - 80;
}
/// <inheritdoc/>
public object ConvertBack(
object value, Type targetType, object parameter, CultureInfo culture) {
throw new NotSupportedException("Cannot convert back");
}
}