添加项目文件。

This commit is contained in:
xyy
2026-04-18 19:00:34 +08:00
parent 1d8ffa7192
commit 4f85aeee2f
19 changed files with 1084 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Globalization;
using System.Windows.Data;
namespace ASTM_D7896_Tester.Converters;
[ValueConversion(typeof(bool), typeof(bool))]
public class InverseBooleanConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is bool b)
return !b;
return false;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is bool b)
return !b;
return false;
}
}