2024-11-22 18:03:37 +08:00
|
|
|
|
using SqlSugar.Extensions;
|
|
|
|
|
using System;
|
2024-08-07 09:45:18 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Globalization;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
|
|
|
|
|
|
namespace DM_Weight.Converter
|
|
|
|
|
{
|
|
|
|
|
class BoxNumConverter : IValueConverter
|
|
|
|
|
{
|
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
|
|
|
{
|
2024-11-22 18:03:37 +08:00
|
|
|
|
if(parameter==null)
|
|
|
|
|
{
|
|
|
|
|
return value.ObjToBool();
|
|
|
|
|
}
|
2024-08-07 09:45:18 +08:00
|
|
|
|
string str=value.ToString();
|
|
|
|
|
return !(str == parameter.ToString());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|