2022-11-26 16:19:55 +01:00
|
|
|
|
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) {
|
2024-04-13 11:49:13 +02:00
|
|
|
|
return (double)value - 110;
|
2022-11-26 16:19:55 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|
public object ConvertBack(
|
|
|
|
|
object value, Type targetType, object parameter, CultureInfo culture) {
|
|
|
|
|
throw new NotSupportedException("Cannot convert back");
|
|
|
|
|
}
|
|
|
|
|
}
|