|
@@ -1688,9 +1688,10 @@ namespace FurnaceUI.Views.Recipes
|
|
|
AITMfcData aITMfcData = (AITMfcData)property.GetValue(this);
|
|
|
double setValue = 0;
|
|
|
double.TryParse(value, out setValue);
|
|
|
- if (setValue > mFCData.MaxValue && type == "Value")
|
|
|
+ var maxData = (double)QueryDataClient.Instance.Service.GetConfig($"PM1.MFC.{mFCData.Name}.N2Scale");
|
|
|
+ if (setValue > maxData && type == "Value")
|
|
|
{
|
|
|
- DialogBox.ShowWarning($"{mFCData.Name} Out of the setting range {0}~{mFCData.MaxValue}!");
|
|
|
+ DialogBox.ShowWarning($"{mFCData.Name} Out of the setting range {0}~{maxData}!");
|
|
|
((TextBoxEx)sender).ChangedColor = ((TextBoxEx)sender).NormalColor;
|
|
|
((TextBoxEx)sender).Text = $"0";
|
|
|
return;
|
|
@@ -2316,9 +2317,9 @@ namespace FurnaceUI.Views.Recipes
|
|
|
}
|
|
|
|
|
|
|
|
|
- private double _maxValue;
|
|
|
+ private string _maxValue;
|
|
|
|
|
|
- public double MaxValue
|
|
|
+ public string MaxValue
|
|
|
{
|
|
|
get => _maxValue; set
|
|
|
{
|
|
@@ -2327,9 +2328,9 @@ namespace FurnaceUI.Views.Recipes
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private double _minValue;
|
|
|
+ private string _minValue;
|
|
|
|
|
|
- public double MinValue
|
|
|
+ public string MinValue
|
|
|
{
|
|
|
get => _minValue; set
|
|
|
{
|