首次上传
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,16 @@
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace SicUI.Models.Operations.Overviews
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for OverViewView.xaml
|
||||
/// </summary>
|
||||
public partial class OverViewView : UserControl
|
||||
{
|
||||
public OverViewView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user