@@ -45,6 +45,10 @@ namespace PLCTool.ViewModels.BasicConfigViewModel
private void LostFocusPLCValue()
{
+ if(string.IsNullOrEmpty(PLCValue))
+ {
+ return;
+ }
if (!IsInteger(PLCValue))
MessageBox.Show("请填写正整数!", "提示", MessageBoxButton.OK, MessageBoxImage.Warning);