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,29 @@
using System.Globalization;
using System.Windows.Controls;
namespace SicUI.Models.Operations.Overviews
{
internal class CassAWaferAmountValidationRule: ValidationRule
{
public int Min { get; set; }
public int Max { get; set; }
public override ValidationResult Validate(object value, CultureInfo cultureInfo)
{
if (int.TryParse(value.ToString(), out var waferAmount))
{
if (waferAmount < Min || waferAmount > Max)
return new ValidationResult(false, $"wafer amount in cassette should be between range {Min} ~ {Max}.");
return new ValidationResult(true, null);
}
else
{
return new ValidationResult(false, "only number accepted.");
}
}
}
}