This commit is contained in:
Rene Schwarz
2021-04-19 06:35:17 +02:00
parent e220c09ec3
commit 981ad26b1b
59 changed files with 1198 additions and 273 deletions

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Windows.Data;
namespace Server_Dashboard {
[ValueConversion(typeof(int), typeof(double))]
public class ValueToAngleConverter : IValueConverter {
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) => (int)value * 0.01 * 360;
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => (int)((double)value / 360);
}
}