ruanzl 2 周之前
父節點
當前提交
2deb75e388
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      CameraModel/Form1.cs

+ 1 - 1
CameraModel/Form1.cs

@@ -65,7 +65,7 @@ namespace CameraModel
                 if (_device != null)
                 {
                     string UserDefinedName = _device.DeviceInfo.UserDefinedName;
-                    if (string.IsNullOrEmpty(UserDefinedName))
+                    if (string.IsNullOrEmpty(UserDefinedName) || UserDefinedName.Equals(input1.Text))
                     {
                         AntdUI.Message.success(this, "成功修改型号为:" + UserDefinedName, Font, 10);
                     }