gxc
2019-12-03 a7a6907b3df65db9c4b2bb1237f709db5c985b52
ZigbeeApp/Shared/Common/DeviceUI.cs
@@ -35,9 +35,9 @@
                var myDevice = Common.LocalDevice.Current.GetDevice(DeviceAddr, DeviceEpoint);
                if (myDevice != null)
                {
                    return $"DeviceUI_{myDevice.FilePath}";
                    return myDevice.FilePath;
                }
                return $"DeviceUI_Unkwon";
                return $"Device_Unkwon";
            }
        }
@@ -208,6 +208,10 @@
                    //中继器
                    ImagePath = "Device/AirSwitch.png";
                    break;
                case DeviceType.TemperatureSensor:
                    //温湿度传感器
                    ImagePath = "Device/Sensor.png";
                    break;
                default:
                    ImagePath = "Device/Relay.png";
                    break;
@@ -304,6 +308,15 @@
                    //中继器
                    deviceTypeR = R.MyInternationalizationString.Repeater;
                    break;
                case DeviceType.DoorLock:
                    //门锁
                    deviceTypeR = R.MyInternationalizationString.DoorLock;
                    break;
                case DeviceType.TemperatureSensor:
                    //温度传感器
                    deviceTypeR = R.MyInternationalizationString.TemperatureAndHumiditySensor;
                    break;
                default:
                    deviceTypeR = R.MyInternationalizationString.UnknowDevice;
                    break;