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