| | |
| | | deviceRowView.AddChidren (tempSwitch); |
| | | |
| | | switch (device.spk) { |
| | | case "light.dimming": { |
| | | //DeviceType.LightDALI |
| | | case SPK.LightDimming: { |
| | | #region 调光器A |
| | | tempSwitch.RemoveFromParent (); |
| | | |
| | |
| | | #endregion |
| | | } |
| | | break; |
| | | case "light.switch": { |
| | | //DeviceType.LightEnergySwitch |
| | | //DeviceType.LightEnergySocket |
| | | //DeviceType.LightSwitchSocket |
| | | case SPK.LightSwitch: { |
| | | #region 继电器 |
| | | tempSwitch.MouseUpEventHandler += (sender3, e3) => { |
| | | tempSwitch.IsSelected = !tempSwitch.IsSelected; |
| | |
| | | #endregion |
| | | } |
| | | break; |
| | | case "curtain.roller": |
| | | case "curtain.trietex": |
| | | case "curtain.switch": { |
| | | case SPK.CurtainRoller: |
| | | case SPK.CurtainTrietex: |
| | | case SPK.CurtainSwitch: |
| | | { |
| | | #region 窗帘 |
| | | tempSwitch.RemoveFromParent (); |
| | | var tempSwitch1 = new Button () { |
| | |
| | | |
| | | } |
| | | break; |
| | | case "fan": { |
| | | case SPK.ElectricFan: { |
| | | #region 风扇 |
| | | tempSwitch.RemoveFromParent (); |
| | | deviceRowView.Height = Application.GetRealHeight (130); |