refactor: 将Framework库和RT、UI放在同一个解决方案中。

This commit is contained in:
SL
2026-06-01 17:48:28 +08:00
parent 1948f4290d
commit b73d39a6b1
4331 changed files with 506148 additions and 49363 deletions
@@ -0,0 +1,32 @@
using System;
using System.Globalization;
using System.Windows.Data;
using MECF.Framework.Common.Account.Permissions;
namespace MECF.Framework.UI.Client.RecipeEditorLib.Converters
{
public class ParamValueDisplayConverter : IMultiValueConverter
{
public object Convert(object[] value, Type targetType, object parameter, CultureInfo culture)
{
// value[0] must be Param.Value
// value[1] must be Param.Permission
// value[2] must be Param.IsHideValue
// value[3] must be Param.HiddenValueMasking
if (value is not { Length: 4 })
return value;
if (value[1] is MenuPermissionEnum perm && value[2] is bool isHideValue && value[3] is string masking)
{
return perm == MenuPermissionEnum.MP_NONE | isHideValue ? masking : value[0].ToString();
}
return value[0];
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}