EDBGS/EliteBGS/MinusFortyFiveConverter.cs

20 lines
527 B
C#
Raw Normal View History

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) {
2022-11-26 17:40:03 +01:00
return (double)value - 55;
}
/// <inheritdoc/>
public object ConvertBack(
object value, Type targetType, object parameter, CultureInfo culture) {
throw new NotSupportedException("Cannot convert back");
}
}