From dd81ab224d472fa1de50800e6828f70f54cbcde4 Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Wed, 8 May 2019 09:25:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=B0=E9=87=8D=E8=AE=A1=E6=95=B0=E6=89=A3?= =?UTF-8?q?=E9=87=8D=E6=94=AF=E6=8C=810=E6=89=A3=E9=87=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ButcherFactory.Form/WeightCount_/DiscontWeightSetDialog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ButcherFactory.Form/WeightCount_/DiscontWeightSetDialog.cs b/ButcherFactory.Form/WeightCount_/DiscontWeightSetDialog.cs index 7d1357f..27b0010 100644 --- a/ButcherFactory.Form/WeightCount_/DiscontWeightSetDialog.cs +++ b/ButcherFactory.Form/WeightCount_/DiscontWeightSetDialog.cs @@ -136,7 +136,7 @@ namespace ButcherFactory.WeightCount_ if (keyBoard.ShowDialog() == true) { var v = 0; - if (int.TryParse(keyBoard.Result, out v) && v > 0) + if (int.TryParse(keyBoard.Result, out v) && v >= 0) { entity.Number = v; mGrid.Refresh();