| | |
| | | } |
| | | LoadDiv(); |
| | | |
| | | |
| | | if (function.functionCategory == FunctionCategory.Curtain || function.functionCategory == FunctionCategory.Scene)//窗帘没有开关按钮 |
| | | { |
| | | switch (function.functionCategory) |
| | |
| | | { |
| | | case FunctionType.AC: |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/AC/AcThinIcon.png"; |
| | | btnIcon.SelectedImagePath = "FunctionIcon/AC/AcThinIcon.png"; |
| | | LoadLastStatesButton(); |
| | | break; |
| | | case FunctionType.FloorHeating: |
| | |
| | | btnSwitch.IsSelected = function.on_off == "on"; |
| | | break; |
| | | } |
| | | |
| | | |
| | | |
| | | #endregion |
| | | } |
| | | |
| | |
| | | IsSelected = function.collection |
| | | }; |
| | | bodyDiv.AddChidren(btnCollectionIcon); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | }; |
| | | bodyDiv.AddChidren(btnLastStates); |
| | | } |
| | | |
| | | } |
| | | } |