添加 MX-PD-盘古 项目文件

将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
Shi.Ji
2026-05-18 11:43:09 +08:00
parent 03632a379d
commit e31d3560bb
739 changed files with 99783 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
using MainShell.Recipe.Models.SubstrateParameter;
using System;
using System.Globalization;
using System.Windows.Data;
namespace MainShell.Converter
{
public class SubstrateHeightMeasureModeToBoolConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var mode = value is SubstrateHeightMeasureMode measureMode ? measureMode : SubstrateHeightMeasureMode.StandardTeachPosition;
var parameterValue = System.Convert.ToInt32(parameter, CultureInfo.InvariantCulture);
return parameterValue == (int)mode;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
if (!(value is bool isChecked) || !isChecked)
{
return Binding.DoNothing;
}
var parameterValue = System.Convert.ToInt32(parameter, CultureInfo.InvariantCulture);
return (SubstrateHeightMeasureMode)parameterValue;
}
}
}