Files
test_demo/MX-PD-盘古 - new/PanGu.DieBonderApp/MainShell/Converter/BondingWsPathModeToBoolConverter.cs
Shi.Ji e31d3560bb 添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
2026-05-18 11:43:09 +08:00

29 lines
867 B
C#

using MainShell.Common;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace MainShell.Converter
{
public class BondingWsPathModeToBoolConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
BondingWSPathMode speedMode = (BondingWSPathMode)value;
int mode = System.Convert.ToInt32(parameter.ToString());
return mode == (int)speedMode ? true : false;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
int mode = System.Convert.ToInt32(parameter.ToString());
return (BondingWSPathMode)mode;
}
}
}