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);
                     }