重构项目,将项目拆分(临时提交)

This commit is contained in:
2025-07-18 22:21:16 +08:00
parent 2cde703f1a
commit 7ca6e4e127
189 changed files with 1090 additions and 1667 deletions

View File

@@ -0,0 +1,33 @@
using System;
using System.Globalization;
using System.Windows.Data;
namespace DMS.ValueConverts
{
public class NullableBooleanConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is bool b && parameter is string paramString)
{
if (bool.TryParse(paramString, out bool paramBool))
{
return b == paramBool;
}
}
return Binding.DoNothing;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is bool b && b && parameter is string paramString)
{
if (bool.TryParse(paramString, out bool paramBool))
{
return paramBool;
}
}
return Binding.DoNothing;
}
}
}