| | |
| | | |
| | | |
| | | if (function.functionCategory == FunctionCategory.Curtain || function.functionCategory == FunctionCategory.Scene)//窗帘没有开关按钮 |
| | | |
| | | { |
| | | switch (function.functionCategory) |
| | | { |
| | |
| | | |
| | | switch (function.functionCategory) |
| | | { |
| | | case FunctionCategory.AC: |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/AC/AcThinIcon.png"; |
| | | LoadLastStatesButton(); |
| | | case FunctionCategory.Thermostat: |
| | | switch (function.functionType) |
| | | { |
| | | case FunctionType.AC: |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/AC/AcThinIcon.png"; |
| | | LoadLastStatesButton(); |
| | | break; |
| | | case FunctionType.FloorHeating: |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/FloorHeating/FloorHeatingThinIcon.png"; |
| | | LoadLastStatesButton(); |
| | | break; |
| | | } |
| | | break; |
| | | case FunctionCategory.Light: |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/Light/LightThinIcon.png"; |
| | | btnSwitch.IsSelected = function.on_off == "on"; |
| | | LoadLightControl(); |
| | | break; |
| | | case FunctionCategory.FloorHeating: |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/FloorHeating/FloorHeatingThinIcon.png"; |
| | | LoadLastStatesButton(); |
| | | break; |
| | | } |
| | | |
| | |
| | | { |
| | | LoadEvent_DivSkipEvent(); |
| | | } |
| | | LoadCollectionEvent(); |
| | | LoadEvent_FunctionCollection(); |
| | | } |
| | | |
| | | /// <summary> |